Files
Linux/drivers/hwmon
Zev Weiss f4e6960f4f hwmon: (nct6775) Fix platform driver suspend regression
Commit c3963bc0a0 ("hwmon: (nct6775) Split core and platform
driver") introduced a slight change in nct6775_suspend() in order to
avoid an otherwise-needless symbol export for nct6775_update_device(),
replacing a call to that function with a simple dev_get_drvdata()
instead.

As it turns out, there is no guarantee that nct6775_update_device()
is ever called prior to suspend. If this happens, the resume function
ends up writing bad data into the various chip registers, which results
in a crash shortly after resume.

To fix the problem, just add the symbol export and return to using
nct6775_update_device() as was employed previously.

Reported-by: Zoltán Kővágó <[email protected]>
Tested-by: Zoltán Kővágó <[email protected]>
Fixes: c3963bc0a0 ("hwmon: (nct6775) Split core and platform driver")
Cc: [email protected]
Signed-off-by: Zev Weiss <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[groeck: Updated description]
Signed-off-by: Guenter Roeck <[email protected]>
2022-08-10 06:37:01 -07:00
..
…
2021-04-20 06:50:14 -07:00
…
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2022-05-22 11:32:32 -07:00
…
2022-05-20 10:57:05 -07:00
…
2022-02-27 17:03:19 -08:00
2020-09-23 09:42:40 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
…
2020-09-23 09:42:39 -07:00
2022-05-22 11:32:31 -07:00
…
2021-04-20 06:50:14 -07:00
2022-05-22 11:32:31 -07:00
2020-09-23 09:42:39 -07:00
…
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00