mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] media: mali-c55: Fix IRQ lifetime and wake handling
@ 2026-09-29 12:02 Linus Walleij
  2026-09-29 12:02 ` [PATCH 1/3] dt-bindings: media: mali-c55: Allow wakeup source Linus Walleij
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Linus Walleij @ 2026-09-29 12:02 UTC (permalink / raw)
  To: Li Youhong, Daniel Scally, Jacopo Mondi, Mauro Carvalho Chehab,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Hans Verkuil,
	Nayden Kanchev
  Cc: linux-media, devicetree, linux-kernel, Linus Walleij, stable

This is essentially my reply with the "proper fix" for:
https://lore.kernel.org/linux-media/20260903025526.2657105-1-dayou5941@163.com/

Keep the Mali-C55 interrupt requested for the driver's lifetime instead
of changing interrupt ownership along with the runtime power state.
Synchronize and disable the IRQ before power-off, and enable it after
power-on. Hold a PM reference until probe installs the IRQ, and stop
runtime PM and drain the IRQ before removing the media entities.

Allow platforms to mark the ISP as a wakeup source. Hold a runtime PM
reference while IRQ wake is armed, resuming an idle ISP if needed and
preserving an active ISP's configuration. Balance the reference on resume
and failure. Hibernation still uses the power-down path.

Wake events require a configured stream and an input that remains active
during system sleep. The internal TPG shares the ISP's power state;
external sensors and receivers need their own wake support. An idle
pipeline is not started by this series. Hardware wake remains untested.

The first patch extends the binding with the standard wakeup-source
property. The second patch updates the driver IRQ and PM handling. The
third patch retains ISP power while IRQ wake is armed.

Tested on the Renesas RZ/V2H board with the other in-flight patches
(DTS changes and the TPG enablement) doing full suspend/resume cycles
with wakeup from RTC and NMI and capturing images before and
after the test.

Assisted-by: LLM
Signed-off-by: Linus Walleij <linusw@kernel.org>
---
Linus Walleij (3):
      dt-bindings: media: mali-c55: Allow wakeup source
      media: mali-c55: Keep IRQ requested during suspend
      media: mali-c55: Keep ISP powered while IRQ wake is armed

 .../devicetree/bindings/media/arm,mali-c55.yaml    |  2 +
 .../media/platform/arm/mali-c55/mali-c55-core.c    | 96 +++++++++++++++++-----
 2 files changed, 78 insertions(+), 20 deletions(-)
---
base-commit: cee9395acd8043be0644b25c34bfa86623f2b935
change-id: 20260918-mali-c55-irq-supend-resume-30b507a20011

Best regards,
--  
Linus Walleij <linusw@kernel.org>


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

end of thread, other threads:[~2026-10-06 11:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29 12:02 [PATCH 0/3] media: mali-c55: Fix IRQ lifetime and wake handling Linus Walleij
2026-09-29 12:02 ` [PATCH 1/3] dt-bindings: media: mali-c55: Allow wakeup source Linus Walleij
2026-09-29 12:02 ` [PATCH 2/3] media: mali-c55: Keep IRQ requested during suspend Linus Walleij
2026-09-29 12:02 ` [PATCH 3/3] media: mali-c55: Keep ISP powered while IRQ wake is armed Linus Walleij
2026-10-06 11:43 ` [PATCH 0/3] media: mali-c55: Fix IRQ lifetime and wake handling Lad, Prabhakar

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

all inboxes | Powered by JetHome®