Zev Weiss
f4e6960f4f
hwmon: (nct6775) Fix platform driver suspend regression
...
Commit c3963bc0a0cf ("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ó <dirty.ice.hu@gmail.com>
Tested-by: Zoltán Kővágó <dirty.ice.hu@gmail.com>
Fixes: c3963bc0a0cf ("hwmon: (nct6775) Split core and platform driver")
Cc: stable@kernel.org
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Link: https://lore.kernel.org/r/20220810052646.13825-1-zev@bewilderbeest.net
[groeck: Updated description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2022-08-10 06:37:01 -07:00
..
2022-07-26 08:02:51 -07:00
2022-05-22 11:32:32 -07:00
2022-07-13 08:38:20 -07:00
2021-10-12 07:22:41 -07:00
2019-11-06 14:37:19 -08:00
2022-05-22 11:32:31 -07:00
2019-05-30 11:25:18 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-04-20 06:50:14 -07:00
2022-02-09 13:00:45 +00:00
2021-12-26 15:02:05 -08:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-12-26 15:02:06 -08:00
2020-12-02 17:42:23 -08:00
2021-05-12 18:53:11 -07:00
2020-09-23 09:42:40 -07:00
2019-05-24 17:36:42 +02:00
2022-02-27 17:03:18 -08:00
2022-02-27 17:03:18 -08:00
2022-02-27 17:03:18 -08:00
2022-02-27 17:03:18 -08:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2022-04-08 08:39:03 -07:00
2022-05-22 11:32:31 -07:00
2021-01-27 17:44:19 -08:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2022-07-27 06:00:24 -07:00
2022-05-22 11:32:31 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2022-07-21 07:15:55 -07:00
2019-06-23 18:33:01 -07:00
2022-02-27 17:03:17 -08:00
2022-07-13 08:39:42 -07:00
2022-07-13 08:39:42 -07:00
2021-10-12 07:22:41 -07:00
2022-03-08 09:20:00 -08:00
2022-05-22 11:32:30 -07:00
2020-10-04 08:40:10 -07:00
2021-10-12 07:22:41 -07:00
2021-05-17 19:50:23 -05:00
2021-11-14 16:57:16 -08:00
2021-02-11 20:28:56 -08:00
2019-05-30 11:26:32 -07:00
2022-07-13 08:38:20 -07:00
2021-10-12 07:22:41 -07:00
2022-07-13 08:39:42 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:40 -07:00
2021-10-12 07:22:41 -07:00
2022-07-13 08:38:19 -07:00
2021-10-12 07:22:41 -07:00
2021-08-17 14:54:26 -07:00
2021-10-12 07:22:41 -07:00
2021-04-20 06:50:14 -07:00
2021-10-12 07:22:41 -07:00
2020-09-23 09:42:39 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-01-27 17:44:18 -08:00
2022-07-13 08:38:20 -07:00
2020-09-23 09:42:39 -07:00
2020-08-23 17:36:59 -05:00
2022-05-22 11:32:32 -07:00
2020-08-04 14:24:39 -07:00
2021-10-12 07:22:37 -07:00
2022-07-01 11:53:29 -07:00
2021-10-12 07:22:41 -07:00
2020-12-02 17:42:23 -08:00
2020-12-11 07:42:27 -08:00
2021-04-20 06:50:14 -07:00
2021-04-20 06:50:14 -07:00
2021-12-26 15:02:05 -08:00
2021-06-17 04:21:46 -07:00
2022-05-17 05:53:00 -07:00
2021-10-12 07:22:41 -07:00
2022-05-20 10:57:05 -07:00
2019-09-03 12:47:17 -07:00
2022-07-20 17:39:11 +02:00
2022-07-27 06:00:24 -07:00
2022-05-22 11:32:30 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2022-02-27 17:03:19 -08:00
2020-09-23 09:42:40 -07:00
2022-05-20 10:57:05 -07:00
2022-07-13 08:38:19 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2022-05-22 11:32:31 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2022-08-10 00:49:46 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2020-09-23 09:42:39 -07:00
2021-10-12 07:22:41 -07:00
2020-09-23 09:42:39 -07:00
2019-04-15 17:19:53 -07:00
2021-04-20 06:50:14 -07:00
2021-09-24 05:02:24 -07:00
2020-09-23 09:42:40 -07:00
2019-11-06 14:37:19 -08:00
2019-11-06 14:37:19 -08:00
2021-04-20 06:50:14 -07:00
2022-05-22 11:32:31 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-04-20 06:50:14 -07:00
2020-09-23 09:42:39 -07:00
2021-04-20 06:50:14 -07:00
2021-10-12 07:22:41 -07:00
2019-05-21 11:28:45 +02:00
2022-05-22 11:32:31 -07:00
2020-12-02 17:42:24 -08:00
2019-06-19 17:09:55 +02:00
2022-02-09 13:00:45 +00:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:37 -07:00
2021-05-17 19:50:37 -05:00
2022-02-27 17:03:17 -08:00
2021-10-12 07:22:41 -07:00
2021-01-27 17:44:18 -08:00
2021-04-20 06:50:14 -07:00
2021-10-12 07:22:41 -07:00
2022-02-09 13:00:45 +00:00
2020-09-23 09:42:39 -07:00
2021-06-17 04:21:46 -07:00
2019-02-18 14:23:29 -08:00
2022-07-15 10:55:57 -07:00
2019-05-30 11:26:32 -07:00
2022-02-27 17:03:17 -08:00
2022-05-22 11:32:31 -07:00
2021-10-12 07:22:39 -07:00
2022-08-10 06:37:01 -07:00
2022-05-22 11:32:31 -07:00
2022-08-10 06:37:01 -07:00
2022-08-10 06:37:01 -07:00
2021-10-28 21:27:38 -07:00
2020-09-23 09:42:39 -07:00
2019-09-03 12:47:17 -07:00
2019-06-05 17:37:14 +02:00
2022-02-19 16:47:54 -08:00
2021-04-20 06:50:14 -07:00
2022-01-09 17:10:58 -08:00
2021-10-12 07:22:41 -07:00
2019-05-30 11:26:41 -07:00
2020-09-23 09:42:39 -07:00
2022-02-27 17:03:17 -08:00
2022-05-22 11:32:31 -07:00
2021-12-26 15:02:06 -08:00
2021-04-20 06:50:14 -07:00
2021-08-17 14:54:25 -07:00
2020-12-12 08:32:35 -08:00
2022-07-13 08:38:19 -07:00
2021-06-17 04:21:44 -07:00
2022-02-27 17:03:19 -08:00
2022-02-27 17:03:17 -08:00
2021-03-30 16:34:55 +01:00
2022-03-15 16:30:56 -07:00
2020-09-23 09:42:39 -07:00
2021-12-26 15:02:06 -08:00
2022-07-26 07:00:27 -07:00
2021-10-12 07:22:41 -07:00
2020-09-23 09:42:40 -07:00
2021-10-12 07:22:41 -07:00
2022-05-22 11:32:32 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-01-27 17:44:17 -08:00
2021-10-12 07:22:41 -07:00
2020-09-23 09:39:40 -07:00
2021-04-20 06:50:14 -07:00
2022-02-08 09:27:33 +00:00
2020-09-23 09:42:39 -07:00
2022-02-27 17:03:18 -08:00
2021-10-12 07:22:41 -07:00
2020-09-23 09:42:39 -07:00
2021-10-12 07:22:41 -07:00
2020-09-23 09:42:39 -07:00
2022-05-20 10:57:05 -07:00
2021-10-18 07:23:21 -07:00
2022-03-03 07:40:42 -08:00
2020-10-04 08:40:10 -07:00
2022-07-21 07:18:39 -07:00
2019-05-21 10:50:45 +02:00
2022-03-08 09:15:22 -08:00
2021-10-12 07:22:41 -07:00
2020-03-24 21:33:36 +01:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2020-09-23 09:42:39 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2021-10-12 07:22:41 -07:00
2019-06-05 17:30:30 +02:00
2019-06-05 17:30:30 +02:00
2021-12-28 08:04:10 -08:00