usb: phy: Correct usb device speed information
authorPetlozu Pravareshwar <petlozup@nvidia.com>
Mon, 23 Nov 2015 12:17:46 +0000 (17:17 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Fri, 27 Nov 2015 16:30:06 +0000 (08:30 -0800)
commit8295438fe86fef2d51747c62deee31a5006ce667
treef33e18b15d9ec0cac032a93cd006b903b9ce6b68
parent1ee939ea33c893a5b98652cef4d0fae5c7f25c32
usb: phy: Correct usb device speed information

When turn_off_vbus_on_lp0 is set, we disconnect
VBUS before going to LP0 and re-enable it after
LP0 wakeup.

Present code assumes device speed info after LP0
is same as before LP0 which is not true if there
is a swapping of devices when system is in LP0.
Hence set speed as UNKNOWN in such condition.

Bug 200153623

change-Id: I129b88ecc8ad743a0a65341dcb0a7b6001f24ff8
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/837740
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
drivers/usb/phy/tegra11x_usb_phy.c