summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSuresh Mangipudi <smangipudi@nvidia.com>2011-05-30 16:44:35 +0530
committerNiket Sirsi <nsirsi@nvidia.com>2011-06-01 12:04:00 -0700
commit55180410c84108257c84c3607d4980122443031a (patch)
tree0842d4305800d0b3c8fdca3408b7e24ca2f5a5ba /arch
parent3c069e975a267d7a37a0171b9cd03b420e1a0849 (diff)
usb: phy: tegra: regulator enabled by default
Hotplug does not work if the regulator is disabled, so keep it enabled until the device wants to enter lowpower mode. (cherry picked from commit 9fcdbe83d85021e6cfbfb075240b6a8439f308e0) Change-Id: Idd7e9bfbcd7d47e510fc2b92bbee80d3e192f5e4 Reviewed-on: http://git-master/r/34472 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/usb_phy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/usb_phy.c b/arch/arm/mach-tegra/usb_phy.c
index 9490aadfb91c..d5cecaaea104 100644
--- a/arch/arm/mach-tegra/usb_phy.c
+++ b/arch/arm/mach-tegra/usb_phy.c
@@ -1679,11 +1679,11 @@ void tegra_usb_phy_power_off(struct tegra_usb_phy *phy, bool is_dpd)
if (power_off[phy->usb_phy_type])
power_off[phy->usb_phy_type](phy, is_dpd);
- if (phy->reg_vdd && phy->regulator_on) {
+ if (phy->reg_vdd && phy->regulator_on && is_dpd) {
#ifdef CONFIG_ARCH_TEGRA_2x_SOC
if (tegra_get_revision() >= TEGRA_REVISION_A03)
#endif
- regulator_disable(phy->reg_vdd);
+ regulator_disable(phy->reg_vdd);
phy->regulator_on = 0;
}
}