All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] regulator: handle regulator late cleanup race with PM suspend
@ 2026-07-31 10:21 Joy Zou
  2026-07-31 10:21 ` [PATCH v2 1/3] regulator: core: use system_freezable_wq for init complete work Joy Zou
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Joy Zou @ 2026-07-31 10:21 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Frank Li, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Ye Li, Jacky Bai, Peng Fan, Dong Aisheng
  Cc: linux-kernel, devicetree, imx, linux-arm-kernel, Joy Zou

The regulator_init_complete_work fires ~30s after boot to disable
unused regulators via I2C. When this work races with PM suspend, the
I2C adapter may already be suspended, causing a -ESHUTDOWN warning
dump.

This series addresses the race and adds proper suspend power
management for unused LDO regulators.

Signed-off-by: Joy Zou <joy.zou@oss.nxp.com>
---
Changes in v2:
- trim the oversized register dump from the backtrace in the commit
  message, keeping only the relevant call trace.
- rename the callback to pfuze100_ldo_set_suspend_disable since it is
  only wired into the LDO ops.
- use the per-regulator stby_reg/stby_mask instead of a hardcoded
  VGENxSTBY/VGENxLPWR bit.
- clarify that the change targets suspend power reduction and remove the
  redundant race-condition wording so the commit message is clearer.
- Link to v1: https://patch.msgid.link/20260716-b4-regulator-pf01-v1-0-8c1519d54bd4@oss.nxp.com

---
Joy Zou (3):
      regulator: core: use system_freezable_wq for init complete work
      regulator: pfuze100: add set_suspend_disable for LDO ops
      arm64: dts: imx8mq-evk: add regulator-off-in-suspend for VGEN1/VGEN6

 arch/arm64/boot/dts/freescale/imx8mq-evk.dts |  6 ++++++
 drivers/regulator/core.c                     |  6 ++++--
 drivers/regulator/pfuze100-regulator.c       | 20 ++++++++++++++++++++
 3 files changed, 30 insertions(+), 2 deletions(-)
---
base-commit: 34cf6dafc47441dfb6b356a095b89c3585a93714
change-id: 20260716-b4-regulator-pf01-5db03fba4a92

Best regards,
--  
Joy Zou <joy.zou@oss.nxp.com>



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

end of thread, other threads:[~2026-07-31 20:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-31 10:21 [PATCH v2 0/3] regulator: handle regulator late cleanup race with PM suspend Joy Zou
2026-07-31 10:21 ` [PATCH v2 1/3] regulator: core: use system_freezable_wq for init complete work Joy Zou
2026-07-31 10:30   ` sashiko-bot
2026-07-31 10:21 ` [PATCH v2 2/3] regulator: pfuze100: add set_suspend_disable for LDO ops Joy Zou
2026-07-31 10:30   ` sashiko-bot
2026-07-31 10:21 ` [PATCH v2 3/3] arm64: dts: imx8mq-evk: add regulator-off-in-suspend for VGEN1/VGEN6 Joy Zou
2026-07-31 16:16 ` (subset) [PATCH v2 0/3] regulator: handle regulator late cleanup race with PM suspend Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.