]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: udc-core: stop UDC on device-initiated disconnect
authorFelipe Balbi <balbi@ti.com>
Thu, 15 Mar 2012 14:37:18 +0000 (16:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 17:16:50 +0000 (10:16 -0700)
commit10dea522a023d442069362eb0aa389e0c5c04c25
tree1b569e83fc2e12770b17f122c1daa402ae9c4e0b
parent9eb3eaa8235cbe184fc7057b48881f15614c7b44
usb: gadget: udc-core: stop UDC on device-initiated disconnect

commit 6d258a4c42089229b855fd706622029decf316d6 upstream.

When we want to do device-initiated disconnect,
let's make sure we stop the UDC in order to
e.g. allow lower power states to be achieved by
turning off unnecessary clocks and/or stoping
PHYs.

When reconnecting, call ->udc_start() again to
make sure UDC is reinitialized.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc-core.c