Thread (15 messages) 15 messages, 6 authors, 10d ago
COOLING10d

[PATCH 0/6] usb: add missing pm_runtime_dont_use_autosuspend() calls

From: Joshua Crofts <joshua.crofts1@gmail.com>
Date: 2026-09-15 09:03:06
Also in: linux-mediatek, linux-usb, lkml

Several drivers in the USB subsystem forget to call dont_use_autosuspend()
on teardown or error, causing potential resource leaks. This series adds
the missing calls.

The offending drivers were found using a semantic patch for Coccinelle
I'm working on [1].

[1] https://lore.kernel.org/all/20260915064327.1377-1-joshua.crofts1@gmail.com/ (local)

Joshua Crofts (6):
  usb: core: add missing pm_runtime_dont_use_autosuspend() call
  usb: xhci-mtk: add missing pm_runtime_dont_use_autosuspend() call
  usb: xhci: add missing pm_runtime_dont_use_autosuspend() calls
  usb: typec: ucsi: ccg: add missing pm_runtime_dont_use_autosuspend()
    call
  usb: mtu3: add missing pm_runtime_dont_use_autosuspend() calls
  usb: cdns3: add missing pm_runtime_dont_use_autosuspend() call

 drivers/usb/cdns3/cdns3-plat.c    | 1 +
 drivers/usb/core/hub.c            | 1 +
 drivers/usb/host/xhci-mtk.c       | 2 ++
 drivers/usb/host/xhci-plat.c      | 2 ++
 drivers/usb/mtu3/mtu3_plat.c      | 2 ++
 drivers/usb/typec/ucsi/ucsi_ccg.c | 1 +
 6 files changed, 9 insertions(+)

-- 
2.47.3

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help