diff options
author | Kai-Heng Feng <[email protected]> | 2023-01-19 01:04:22 +0800 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2023-01-21 17:50:38 +0000 |
commit | ee3c5b644a0fdcfed27515a39fb2dd3a016704c1 (patch) | |
tree | f4bf295f2b1d0da1ddb09c8427a7f35ccb540274 /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | eb50cd5bfdac61627a5026566cf3b90ced7b141c (diff) |
iio: light: cm32181: Fix PM support on system with 2 I2C resources
Commit c1e62062ff54 ("iio: light: cm32181: Handle CM3218 ACPI devices
with 2 I2C resources") creates a second client for the actual I2C
address, but the "struct device" passed to PM ops is the first I2C
client that can't talk to the sensor.
That means the I2C transfers in both suspend and resume routines can
fail and blocking the whole suspend process.
Instead of using the first client for I2C transfer, use the I2C client
stored in the cm32181 private struct so the PM ops can get the correct
I2C client to really talk to the sensor device.
Fixes: 68c1b3dd5c48 ("iio: light: cm32181: Add PM support")
BugLink: https://bugs.launchpad.net/bugs/1988346
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2152281
Tested-by: Wahaj <[email protected]>
Signed-off-by: Kai-Heng Feng <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions