diff options
author | Tomoya MORINAGA <tomoya.rohm@gmail.com> | 2012-02-03 11:35:26 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-02-09 11:56:53 +0400 |
commit | dd63180b758d5972fc90621af0741d5bfae1a684 (patch) | |
tree | 0340c73c18cfac563b8b445cc79c74c2ab7d3ba7 /drivers/usb/gadget/epautoconf.c | |
parent | 20edfbb6a17f3007c1905e9849d8d306e318883b (diff) | |
download | linux-dd63180b758d5972fc90621af0741d5bfae1a684.tar.xz |
usb: gadget: pch_udc: Detecting VBUS through GPIO
Problem:
In USB Suspend, pch_udc handles 'disconnect'.
Root cause:
The current pch_udc is not monitoring VBUS.
When USB cable is disconnected, USB Device Controller generates
an interrupt of USB Suspend.
pch_udc cannot distinguish it is USB Suspend or disconnect.
Therefore, pch_udc handles 'disconnect' after an interrupt of
USB Suspend happend.
Solution:
VBUS is detected through GPIO.
After an interrupt produced USB Suspend, if VBUS is Low,
pch_udc handles 'disconnect'.
If VBUS is High, pch_udc handles 'suspend'.
Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/epautoconf.c')
0 files changed, 0 insertions, 0 deletions