summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSuresh Mangipudi <smangipudi@nvidia.com>2011-05-26 16:03:49 +0530
committerRohan Somvanshi <rsomvanshi@nvidia.com>2011-05-27 19:54:09 -0700
commit9fcdbe83d85021e6cfbfb075240b6a8439f308e0 (patch)
tree0b823b6ac218d319c8a652ca7bf835fd3ad48846 /arch
parent9c93cbac2a72e238229ecb070cbf7d4791c11cb8 (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. Change-Id: I5a53a0fb0a7f26ba9f2674bbc65f4650948f6143 Reviewed-on: http://git-master/r/33117 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Tested-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/usb_phy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/usb_phy.c b/arch/arm/mach-tegra/usb_phy.c
index 371f5f72dd0f..93310b9f3abd 100644
--- a/arch/arm/mach-tegra/usb_phy.c
+++ b/arch/arm/mach-tegra/usb_phy.c
@@ -1224,7 +1224,8 @@ void tegra_usb_phy_power_off(struct tegra_usb_phy *phy, bool is_dpd)
} else
utmi_phy_power_off(phy, is_dpd);
- if (phy->regulator_on && (tegra_get_revision() >= TEGRA_REVISION_A03)) {
+ if (phy->regulator_on && (tegra_get_revision() >= TEGRA_REVISION_A03)
+ && is_dpd) {
regulator_disable(phy->reg_vdd);
phy->regulator_on = 0;
}