]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: Remove conditional PM runtime calls for musb_gadget
authorTony Lindgren <tony@atomide.com>
Tue, 31 May 2016 15:05:13 +0000 (10:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 21:58:59 +0000 (14:58 -0700)
commit3ee48f79da94b6e16bd5e4a76475d92e4005f0f7
tree42010b2897b38215d5deae648ecc7d90b5f8674a
parentbd8581d4a149630b080555576040ce1f442dd75c
usb: musb: Remove conditional PM runtime calls for musb_gadget

The conditional use of PM runtime does not work properly
for musb gadget. On cable disconnect we may not get any
USB_EVENT_NONE leaving the PM runtime call unpaired.

Let's fix the issue by making sure the PM runtime calls are
paired within the functions. The glue layer will take care
of the rest.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_gadget.c