summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuresh Mangipudi <smangipudi@nvidia.com>2011-09-27 11:53:54 +0530
committerSimone Willett <swillett@nvidia.com>2011-09-27 15:16:22 -0700
commit95efbf5bb209984a8303b3c7022ce6cc1b06bace (patch)
tree577b376f8dcd1228e4f55222675737b5cfdd3b55
parent9b500390784a8e1d11c0bd225c342781bc817b98 (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 Change-Id: Iad8cb86d0db354d9e0c4ed1ed5037dbc01931867 Reviewed-on: http://git-master/r/54622 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/usb_phy.c5
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 644f92bebd2a..be02ae408233 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 */