diff options
author | Heiner Kallweit <[email protected]> | 2021-09-07 22:33:02 +0200 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2021-09-29 22:13:45 +0200 |
commit | c073b25dad0c2668b73ae9e8652bc3b8012e762b (patch) | |
tree | 04b5166f967747898de9896ca084b85632853cf5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7d6b61c394a42b8385858bb9e306d48a0112823c (diff) |
i2c: i801: Stop using pm_runtime_set_autosuspend_delay(-1)
The original change works as intended, but Andy pointed in [0] that now
userspace could re-enable RPM via sysfs, even though we explicitly want
to disable it. So effectively revert the original patch, just with small
improvements:
- Calls to pm_runtime_allow()/pm_runtime_forbid() don't have to be
balanced, so we can remove the call to pm_runtime_forbid() in
i801_remove().
- priv->acpi_reserved is accessed after i801_acpi_remove(), and according
to Robert [1] the custom handler can't run any longer. Therefore we
don't have to take priv->acpi_lock.
[0] https://www.spinics.net/lists/linux-i2c/msg52730.html
[1] https://lore.kernel.org/linux-acpi/BYAPR11MB32561D19A0FD9AB93E2B1E5287D39@BYAPR11MB3256.namprd11.prod.outlook.com/T/#t
Fixes: 4e60d5dd10cd ("i2c: i801: Improve disabling runtime pm")
Reported-by: Andy Shevchenko <[email protected]>
Signed-off-by: Heiner Kallweit <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Jean Delvare <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions