usb: gadget: tegra:change condition for vbus check
authorRakesh Bodla <rbodla@nvidia.com>
Wed, 17 Oct 2012 06:06:21 +0000 (11:06 +0530)
committerMrutyunjay Sawant <msawant@nvidia.com>
Fri, 19 Oct 2012 13:58:41 +0000 (06:58 -0700)
commit00777683b05af76f15daa0152fb014183a32fa28
tree65e0850c55d233ea82e7ba30359d19746f491c37
parent94a890478c5a00a258f5ee851a1ccacddbc30c83
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

Change-Id: Ic904beb5919ddafef5becf39ddac1767cdda79cd
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/145148
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
drivers/usb/gadget/tegra_udc.c