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

Joshua Crofts posted 6 patches 1 week, 2 days ago
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(+)
[PATCH 0/6] usb: add missing pm_runtime_dont_use_autosuspend() calls
Posted by Joshua Crofts 1 week, 2 days ago
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/

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