usb: gadget: Enable/disable the gadget device on vbus_session calls
authorBenoit Goby <benoit@android.com>
Wed, 1 Sep 2010 00:09:39 +0000 (17:09 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:28:23 +0000 (16:28 -0700)
commitcf99404c25dd0be8c6fef97ac6f44ac5728b69cd
tree80c8c767f7df0390f8aa803f93e9ba91c6a96398
parentc3b5093ac899ba64f3efa1b0660fadd43311ec01
usb: gadget: Enable/disable the gadget device on vbus_session calls

If we use an OTG driver, the driver will detect VBUS changes and notify
the gadget driver through vbus_session. Enable/disable the gadget driver
in vbus session so that there is no need to check the OTG state on every
interrupt.

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