usb: rockchip-inno-usb2: check EXTCON_USB_VBUS_EN state in otg sm work
authorWu Liang feng <wulf@rock-chips.com>
Sat, 15 Oct 2016 04:18:43 +0000 (12:18 +0800)
committerWu Liang feng <wulf@rock-chips.com>
Sun, 16 Oct 2016 06:39:59 +0000 (14:39 +0800)
commitcfe5a90196a067846339b0ca29eec2aff456d971
tree74781dd116a92dcf54474b7c19bc832bdd6f7ab2
parente90169f79e31c82918b25569904744c6d0341dd8
usb: rockchip-inno-usb2: check EXTCON_USB_VBUS_EN state in otg sm work

If extcon cable state is EXTCON_USB_VBUS_EN, it also means
that otg host connected, don't need to do charge detection.

Change-Id: Ie7c97c4cd0cfd2688edbfb3bbff93d2f58e9ef9a
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/phy/phy-rockchip-inno-usb2.c