Skip to content

usb: add missing pm_runtime_dont_use_autosuspend() calls

Joshua Crofts linux-arm-kernel linux-mediatek linux-usb lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6usb: core: add missing pm_runtime_dont_use_autosuspend() calldrivers/usb/core/hub.c+1 -04 replies
2/6usb: xhci-mtk: add missing pm_runtime_dont_use_autosuspend() calldrivers/usb/host/xhci-mtk.c+2 -02 replies
3/6usb: xhci: add missing pm_runtime_dont_use_autosuspend() callsdrivers/usb/host/xhci-plat.c+2 -00 replies
4/6usb: typec: ucsi: ccg: add missing pm_runtime_dont_use_autosuspend() calldrivers/usb/typec/ucsi/ucsi_ccg.c+1 -01 reply
5/6usb: mtu3: add missing pm_runtime_dont_use_autosuspend() callsdrivers/usb/mtu3/mtu3_plat.c+2 -01 reply
6/6usb: cdns3: add missing pm_runtime_dont_use_autosuspend() calldrivers/usb/cdns3/cdns3-plat.c+1 -01 reply

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchAngeloGioacchino Del RegnoAlan SternHeikki Krogerus
1/6A-b
2/6R-b
3/6
4/6R-b
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

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

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/[email protected]/

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(+)
Signature · 1 line
2.47.3