usb: gadget: tegra:change condition for vbus check
authorRakesh Bodla <rbodla@nvidia.com>
Wed, 17 Oct 2012 06:06:21 +0000 (11:06 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Mon, 14 Jan 2013 19:28:51 +0000 (11:28 -0800)
commit364f8d1cf478a94acdb1bec96614372da0ec883b
tree48603b3c0a301a63d88834526d7eda21fcb9d58f
parent185f345ed930377d945397b2b710bf62d91f5fa4
usb: gadget: tegra:change condition for vbus check

Changing the condition for vbus check. VBUS will be
present when OTG cable is connected, hence vbus
status will be reflected wrong. Correct status
is tracked through vbus_active variable.

Bug 1158853
Bug 1214802

Change-Id: Ic904beb5919ddafef5becf39ddac1767cdda79cd
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/145148
(cherry picked from commit 00777683b05af76f15daa0152fb014183a32fa28)
Reviewed-on: http://git-master/r/190673
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Preetham Chandru <pchandru@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/usb/gadget/tegra_udc.c