Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] pmdomain: imx: Keep the domains left on by the bootloader
@ 2026-11-22 20:51 Dario Binacchi
  2026-11-22 20:51 ` [PATCH v4 1/4] pmdomain: imx8m-blk-ctrl: Remove the power notifier on probe failure Dario Binacchi
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Dario Binacchi @ 2026-11-22 20:51 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: Lucas Stach, linux-amarula, michael, Peng Fan, Dario Binacchi,
	Fabio Estevam, Frank Li, Jacky Bai, Kees Cook, Marek Vasut,
	Ming Qian, Pengutronix Kernel Team, Rafael J. Wysocki,
	Sascha Hauer, Shawn Guo, Uwe Kleine-König, Xu Yang,
	bui duc phuc, imx, linux-arm-kernel, linux-pm

The i.MX8M power domain drivers register all their domains as off.
A domain left on by the bootloader, e.g. to show a splash screen, is
then powered up again by its first consumer, which on the i.MX8MN
turns the display off and hangs the system.

This series reads the state of the domains from the hardware, so that
the ones left on are kept on until their consumers have probed.

The first patch fixes an error path of the blk-ctrl probe. The clocks
held by the last patch are released at sync_state, so they stay on
until all the consumers of the blk-ctrl have probed.

Tested on i.MX8MN (BSH SMM S2 PRO).

Changes in v4:
- Register the power notifier before powering up the bus domain

Changes in v3:
- Add Reported-by and Closes tags
- Drop the runtime PM reference synchronously in the probe error path
- Keep the bus domain on while the state of the domains is read
- Remove the domains before releasing their boot-on references

Changes in v2:
- New patch
- Release the resources of the domains left on when the driver is
  removed
- Take the references once the probe can no longer be deferred
- Clear the boot-on state when the domain is powered off
- Release the references when the driver is removed
- Rebase on the changes of the previous patch

Dario Binacchi (4):
  pmdomain: imx8m-blk-ctrl: Remove the power notifier on probe failure
  pmdomain: imx: gpcv2: Keep the domains left on by the bootloader
  pmdomain: imx8m-blk-ctrl: Keep the domains left on by the bootloader
  pmdomain: imx8m-blk-ctrl: Hold boot-on domain clocks until sync_state

 drivers/pmdomain/imx/gpcv2.c          |  77 ++++++++++++-
 drivers/pmdomain/imx/imx8m-blk-ctrl.c | 156 ++++++++++++++++++++++++--
 2 files changed, 223 insertions(+), 10 deletions(-)

---
base-commit: d0f871bfb831705d9f55479f5b2b40f636ea7b16
branch: imx-pmdomain-boot-on-v4

-- 
2.43.0



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

end of thread, other threads:[~2026-11-22 20:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22 20:51 [PATCH v4 0/4] pmdomain: imx: Keep the domains left on by the bootloader Dario Binacchi
2026-11-22 20:51 ` [PATCH v4 1/4] pmdomain: imx8m-blk-ctrl: Remove the power notifier on probe failure Dario Binacchi
2026-11-22 20:51 ` [PATCH v4 2/4] pmdomain: imx: gpcv2: Keep the domains left on by the bootloader Dario Binacchi
2026-11-22 20:51 ` [PATCH v4 3/4] pmdomain: imx8m-blk-ctrl: " Dario Binacchi
2026-11-22 20:51 ` [PATCH v4 4/4] pmdomain: imx8m-blk-ctrl: Hold boot-on domain clocks until sync_state Dario Binacchi

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