From: Benoit Goby <benoit@android.com> Date: Sat, 18 Dec 2010 01:25:12 +0000 (-0800) Subject: ARM: tegra: usb_phy: Use utmi_phy_preresume for usb1 too X-Git-Tag: firefly_0821_release~9833^2~77^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=44d6df2d37432e20e7b985669d684d610f8d38e5;p=firefly-linux-kernel-4.4.55.git ARM: tegra: usb_phy: Use utmi_phy_preresume for usb1 too This prevents disconnects on resume. Change-Id: I16a9e826df0d6c992e0e4480d38badba6cc9dfec Signed-off-by: Benoit Goby <benoit@android.com> --- diff --git a/arch/arm/mach-tegra/usb_phy.c b/arch/arm/mach-tegra/usb_phy.c index 26605d9c2c0f..f0d1ec803cfa 100644 --- a/arch/arm/mach-tegra/usb_phy.c +++ b/arch/arm/mach-tegra/usb_phy.c @@ -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; }