[PATCH v1 0/1] i2c: Restore power status of device if probe fails

From: Ricardo Ribalda
Date: Wed Nov 09 2022 - 09:30:26 EST


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 <wsa@xxxxxxxxxx>
To: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
To: Tomasz Figa <tfiga@xxxxxxxxxxxx>
To: "Rafael J. Wysocki" <rafael.j.wysocki@xxxxxxxxx>
Cc: Hidenori Kobayashi <hidenorik@xxxxxxxxxx>
Cc: linux-i2c@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Ricardo Ribalda <ribalda@xxxxxxxxxxxx>

---
Ricardo Ribalda (1):
i2c: Restore initial power state on probe failure

drivers/i2c/i2c-core-base.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
base-commit: f141df371335645ce29a87d9683a3f79fba7fd67
change-id: 20221109-i2c-waive-ae97fea1f1b5

Best regards,
--
Ricardo Ribalda <ribalda@xxxxxxxxxxxx>