Home
last modified time | relevance | path

Searched hist:f4a180247e06c69e7d8fac4eb14d172c3a5d43a3 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/hwmon/
H A Dg762.cdiff f4a180247e06c69e7d8fac4eb14d172c3a5d43a3 Wed Jul 10 00:41:07 CEST 2024 Guenter Roeck <linux@roeck-us.net> hwmon: (g762) Initialize fans after configuring clock

Adding support for G761 included adding support for an internal clock.
Enabling the internal clock requires setting a bit in the FAN_CMD2
register. This is implemented in g762_fan_init(). However, g762_fan_init()
is called before clock support is selected, and the flag indicating that
the internal clock should be used is not yet set.

Initialize the clock before initializing the fan to solve the problem.
While at it, also add "g7621" to the i2c_device_id array.

Cc: Christian Marangi <ansuelsmth@gmail.com>
Fixes: 6ce402327a6f ("hwmon: g672: add support for g761")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>