ARM: tegra: usb_phy: Use utmi_phy_preresume for usb1 too
authorBenoit Goby <benoit@android.com>
Sat, 18 Dec 2010 01:25:12 +0000 (17:25 -0800)
committerBenoit Goby <benoit@android.com>
Tue, 28 Dec 2010 23:07:03 +0000 (15:07 -0800)
This prevents disconnects on resume.

Change-Id: I16a9e826df0d6c992e0e4480d38badba6cc9dfec
Signed-off-by: Benoit Goby <benoit@android.com>
arch/arm/mach-tegra/usb_phy.c

index 26605d9c2c0f6004e3425307dfb91c97eddef3cb..f0d1ec803cfa4797f84a7decb2165f943389ccc2 100644 (file)
@@ -692,14 +692,14 @@ int tegra_usb_phy_power_off(struct tegra_usb_phy *phy)
 
 int tegra_usb_phy_preresume(struct tegra_usb_phy *phy)
 {
-       if (phy->instance == 2)
+       if (phy->instance != 1)
                utmi_phy_preresume(phy);
        return 0;
 }
 
 int tegra_usb_phy_postresume(struct tegra_usb_phy *phy)
 {
-       if (phy->instance == 2)
+       if (phy->instance != 1)
                utmi_phy_postresume(phy);
        return 0;
 }