diff options
author | Suresh Mangipudi <smangipudi@nvidia.com> | 2011-09-27 11:53:54 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-09-28 17:29:23 -0700 |
commit | 61b7e4e8a1775b5270e335a6f8e3e48619607573 (patch) | |
tree | be6f4ab3cf9e3c7b611b2b0a1346a01be31900ec | |
parent | 68b0802f2d5c4ba51c8b6134d28bad79df4d1e49 (diff) |
tegra: usb: phy: check usb line status during LP resume
Check the usb line status during the resume from low power mode for
proper usb phy state.
Bug 874491
Reviewed-on: http://git-master/r/54622
(cherry picked from commit 95efbf5bb209984a8303b3c7022ce6cc1b06bace)
Change-Id: I75d4ccfdfc459517cdfed2d2a29295701d1c2abb
Reviewed-on: http://git-master/r/54874
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/usb_phy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/usb_phy.c b/arch/arm/mach-tegra/usb_phy.c index 41b214bc475f..150154fe23fb 100644 --- a/arch/arm/mach-tegra/usb_phy.c +++ b/arch/arm/mach-tegra/usb_phy.c @@ -1525,6 +1525,11 @@ static void utmi_phy_restore_start(struct tegra_usb_phy *phy, /* check whether we wake up from the remote resume */ if (UTMIP_WALK_PTR_VAL(inst) & val) { phy->remote_wakeup = true; + } else { + if (!((UTMIP_USBON_VAL(phy->instance) | + UTMIP_USBOP_VAL(phy->instance)) & val)) { + utmip_phy_disable_pmc_bus_ctrl(phy); + } } /* (2LS WAR)is not required for LS devices and is only for HS */ |