Skip to content

USB: fix runtime PM after driver unbind

Johan Hovold linux-media linux-usb lkml stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4USB: usb-skeleton: fix runtime PM after driver unbinddrivers/usb/usb-skeleton.c+3 -50 replies
2/4USB: usblp: fix runtime PM after driver unbinddrivers/usb/class/usblp.c+5 -30 replies
3/4USB: serial: fix runtime PM after driver unbinddrivers/usb/serial/usb-serial.c+1 -40 replies
4/4media: stkwebcam: fix runtime PM after driver unbinddrivers/media/usb/stkwebcam/stk-webcam.c+1 -20 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchMauro Carvalho Chehab
1/4
2/4
3/4
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] USB: fix runtime PM after driver unbind

A recent change in USB core broke runtime-PM after driver unbind in several drivers (when counting all USB serial drivers). Specifically, drivers which took care not modify the runtime-PM usage counter after their disconnect callback had returned, would now fail to be suspended when a driver is later bound.

Greg, feel free to pick these up directly. The media patch has been acked by Mauro.

Johan

v2
- rebase on usb-next, I had a conflicting change to usb-skeleton in my tree
- add Mauro's ack to the media patch

Johan Hovold (4):
USB: usb-skeleton: fix runtime PM after driver unbind
USB: usblp: fix runtime PM after driver unbind
USB: serial: fix runtime PM after driver unbind
media: stkwebcam: fix runtime PM after driver unbind

 drivers/media/usb/stkwebcam/stk-webcam.c | 3 +--
 drivers/usb/class/usblp.c                | 8 +++++---
 drivers/usb/serial/usb-serial.c          | 5 +----
 drivers/usb/usb-skeleton.c               | 8 +++-----
 4 files changed, 10 insertions(+), 14 deletions(-)
Signature · 1 line
2.23.0