We have discovered that some power lines were always on even if the devices
on that power line was not used.
This happens because we failed to probe a device on the i2c bus, and the
ACPI Power Resource were never turned off.
This patch tries to fix this issue.
To: Wolfram Sang <[email protected]>
To: Sakari Ailus <[email protected]>
To: Tomasz Figa <[email protected]>
To: "Rafael J. Wysocki" <[email protected]>
Cc: Hidenori Kobayashi <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Ricardo Ribalda <[email protected]>
---
Changes in v4:
- Rename full_power to do_power_on
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Introduce full_power variable to make more clear what we are doing.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Cover also device remove
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Ricardo Ribalda (1):
i2c: Restore initial power state when we are done.
drivers/i2c/i2c-core-base.c | 11 +++++++----
include/linux/i2c.h | 4 ++++
2 files changed, 11 insertions(+), 4 deletions(-)
---
base-commit: f141df371335645ce29a87d9683a3f79fba7fd67
change-id: 20221109-i2c-waive-ae97fea1f1b5
Best regards,
--
Ricardo Ribalda <[email protected]>