Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/2] usb: typec: tcpm/tcpci_maxim: lockdep and PM wakeup fixes
@ 2026-11-23 13:03 André Draszik
  2026-11-23 13:03 ` [PATCH 1/2] usb: typec: tcpm/tcpci_maxim: fix invalid wait context André Draszik
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: André Draszik @ 2026-11-23 13:03 UTC (permalink / raw)
  To: Heikki Krogerus, Greg Kroah-Hartman, Badhri Jagan Sridharan
  Cc: Sebastian Andrzej Siewior, Clark Williams, Steven Rostedt,
	Peter Griffin, Tudor Ambarus, Juan Yescas, Amit Sunil Dhamne,
	kernel-team, linux-usb, linux-rt-devel, André Draszik,
	stable

Hi,

These two patches fix a lockdep invalid wait context splat and a
probe/unbind wakeup-event race in the Maxim 77759 TCPCI driver:

- Call pm_wakeup_event() from the threaded IRQ handler instead of the
  hard IRQ handler (the driver uses IRQF_ONESHOT, so the primary handler
  runs in hard IRQ context even on PREEMPT_RT).
- Initialise device wakeup before requesting the IRQ, so a pending alert
  or an interrupt during unbind cannot miss recording a wakeup event.

Tested on Pixel 6 (Oriole) with CONFIG_PROVE_RAW_LOCK_NESTING=y enabled.

Cheers
Andre'

Signed-off-by: André Draszik <andre.draszik@linaro.org>
---
André Draszik (2):
      usb: typec: tcpm/tcpci_maxim: fix invalid wait context
      usb: typec: tcpm/tcpci_maxim: init wakeup before irq

 drivers/usb/typec/tcpm/tcpci_maxim_core.c | 24 +++++++-----------------
 1 file changed, 7 insertions(+), 17 deletions(-)
---
base-commit: 749a4de370409464cf8501ec5b2451df45c84eb4
change-id: 20261123-max77759-wait-10974f4c312d

Best regards,
-- 
André Draszik <andre.draszik@linaro.org>


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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 13:03 [PATCH 0/2] usb: typec: tcpm/tcpci_maxim: lockdep and PM wakeup fixes André Draszik
2026-11-23 13:03 ` [PATCH 1/2] usb: typec: tcpm/tcpci_maxim: fix invalid wait context André Draszik
2026-11-23 13:03 ` [PATCH 2/2] usb: typec: tcpm/tcpci_maxim: init wakeup before irq André Draszik
2026-11-23 13:06 ` [PATCH 0/2] usb: typec: tcpm/tcpci_maxim: lockdep and PM wakeup fixes sashiko-bot

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