ARM: tegra: usb_phy: Fix remote wakeup issue during LP0
Rakesh Bodla [Tue, 3 Apr 2012 09:08:25 +0000 (14:08 +0530)]
Sleep walk settings for remote wakeup are set properly to detect
remote wakeup events

Bug 963900

Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
(cherry picked from commit fd9ccb33d91e0aaf0619ec065e1ba7ee52edf1bd)
Change-Id: I7c52d45901ce522c51570bdd84513fbbb6c93911
Reviewed-on: http://git-master/r/94892
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

arch/arm/mach-tegra/usb_phy.c

index 6b9ed2b..13adfd2 100644 (file)
@@ -1417,9 +1417,9 @@ static void utmip_setup_pmc_wake_detect(struct tegra_usb_phy *phy)
        val = readl(pmc_base + PMC_SLEEPWALK_REG(inst));
        val &= ~UTMIP_AP_A;
        val |= UTMIP_USBOP_RPD_A | UTMIP_USBON_RPD_A| UTMIP_AN_A | UTMIP_HIGHZ_A |
-               UTMIP_USBOP_RPD_B | UTMIP_USBON_RPD_B | UTMIP_AP_B |
-               UTMIP_USBOP_RPD_C | UTMIP_USBON_RPD_C | UTMIP_AP_C |
-               UTMIP_USBOP_RPD_D | UTMIP_USBON_RPD_D | UTMIP_AP_D;
+               UTMIP_USBOP_RPD_B | UTMIP_USBON_RPD_B | UTMIP_AP_B | UTMIP_AN_B |
+               UTMIP_USBOP_RPD_C | UTMIP_USBON_RPD_C | UTMIP_AP_C | UTMIP_AN_C |
+               UTMIP_USBOP_RPD_D | UTMIP_USBON_RPD_D | UTMIP_AP_D | UTMIP_AN_D;
        writel(val, pmc_base + PMC_SLEEPWALK_REG(inst));
 
        if (port_speed == TEGRA_USB_PHY_PORT_SPEED_LOW) {