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)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Apr 2012 09:21:32 +0000 (12:21 +0300)
commit6d258a4c42089229b855fd706622029decf316d6
treeb29c8fd7c2aa60afa419161e433140cde4a389bb
parent0034102808e0dbbf3a2394b82b1bb40b5778de9e
usb: gadget: udc-core: stop UDC on device-initiated disconnect

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.

Cc: stable@vger.kernel.org
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc-core.c