]> 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)
commit706f23631a22fa6712024cfa9ba3fdd1655b8237
tree42010b2897b38215d5deae648ecc7d90b5f8674a
parent6d7fc88c8e12a8a4ac25caa19f6fc636b11305c0
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