usb: gadget: Reset the controller when cable is unplugged
authorBenoit Goby <benoit@android.com>
Fri, 20 Aug 2010 04:42:23 +0000 (21:42 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:27:46 +0000 (16:27 -0700)
commit51901f900320ae52fc59c9259cd051416cf6699c
tree3f8592cd2cca38c45a931ffd173e9a062e0ba5d3
parent549d5a207316248177f70635f32d2ca93cbdedd5
usb: gadget: Reset the controller when cable is unplugged

Reset the controller when the cable is unplugged to leave it in the idle
state. The OTG driver will reconfigure it on vbus/id pin detection.

Change-Id: I87903ec86f3c35af64a141f27a34cc0720a61b08
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/gadget/fsl_tegra_udc.c
drivers/usb/gadget/fsl_udc_core.c