Arm: tegra: pmc: Fix typo
Krishna Yarlagadda [Tue, 14 May 2013 10:59:59 +0000 (15:59 +0530)]
Use pmc override for TCTRL/RCTRL when xusb is in use.
Fixed typo which does just opposite.

Change-Id: I96ea5197e67fedf0357f4d37c75d1d49790c0a47
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/228365
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

arch/arm/mach-tegra/tegra_usb_pmc.c

index 5d657e9..5f18620 100644 (file)
@@ -345,7 +345,7 @@ static void utmip_powerup_pmc_wake_detect(struct tegra_usb_pmc_data *pmc_data)
        /* Disable PMC master mode by clearing MASTER_EN */
        val = readl(pmc_base + PMC_SLEEP_CFG);
        /* WAR for xusb */
-       if (pmc_data->controller_type != TEGRA_USB_3_0)
+       if (pmc_data->controller_type == TEGRA_USB_3_0)
                val |= UTMIP_RCTRL_USE_PMC(inst) | UTMIP_TCTRL_USE_PMC(inst);
        else
                val &= ~(UTMIP_RCTRL_USE_PMC(inst) |