mbox series

[v2,0/4] USB: fix runtime PM after driver unbind

Message ID 20191001084908.2003-1-johan@kernel.org (mailing list archive)
Headers show
Series USB: fix runtime PM after driver unbind | expand

Message

Johan Hovold Oct. 1, 2019, 8:49 a.m. UTC
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(-)

Comments

Greg KH Oct. 4, 2019, 12:39 p.m. UTC | #1
On Tue, Oct 01, 2019 at 10:49:04AM +0200, Johan Hovold wrote:
> 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.

All now applied, thanks.

greg k-h