public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] i2c: Restore power status of device if probe fail or device is removed
@ 2022-11-09 15:17 Ricardo Ribalda
  2022-11-09 15:17 ` [PATCH v2 1/1] i2c: Restore initial power state when we are done Ricardo Ribalda
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Ribalda @ 2022-11-09 15:17 UTC (permalink / raw)
  To: Tomasz Figa, Rafael J. Wysocki, Wolfram Sang, Sakari Ailus
  Cc: linux-kernel, Hidenori Kobayashi, linux-i2c, Ricardo Ribalda

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@kernel.org>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Tomasz Figa <tfiga@chromium.org>
To: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Cc: Hidenori Kobayashi <hidenorik@google.com>
Cc: linux-i2c@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>

---
Changes in v2:
- Cover also device remove
- Link to v1: https://lore.kernel.org/r/20221109-i2c-waive-v1-0-ed70a99b990d@chromium.org

---
Ricardo Ribalda (1):
      i2c: Restore initial power state when we are done.

 drivers/i2c/i2c-core-base.c | 7 ++++---
 include/linux/i2c.h         | 3 +++
 2 files changed, 7 insertions(+), 3 deletions(-)
---
base-commit: f141df371335645ce29a87d9683a3f79fba7fd67
change-id: 20221109-i2c-waive-ae97fea1f1b5

Best regards,
-- 
Ricardo Ribalda <ribalda@chromium.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-10 10:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-09 15:17 [PATCH v2 0/1] i2c: Restore power status of device if probe fail or device is removed Ricardo Ribalda
2022-11-09 15:17 ` [PATCH v2 1/1] i2c: Restore initial power state when we are done Ricardo Ribalda
2022-11-10  9:25   ` Hidenori Kobayashi
2022-11-10 10:25     ` Ricardo Ribalda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox