usb: host: tegra: Remove programing PTC bits based on bus speed.
authorJay Cheng <jacheng@nvidia.com>
Wed, 10 Nov 2010 23:40:46 +0000 (18:40 -0500)
committerBenoit Goby <benoit@android.com>
Mon, 15 Nov 2010 19:34:03 +0000 (11:34 -0800)
Program PTC bits as NORMAL_OP is enough when resume.

Change-Id: I229eb3ef2ebaff72d023179502ec7a8904e87682
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
drivers/usb/host/ehci-tegra.c

index 2ac190b9e78f38658addf99c8ad20633f4e9a5c0..e566a97f21dc4312d47d8c45b3b883a898bd868a 100644 (file)
@@ -201,18 +201,6 @@ static int tegra_usb_resume(struct usb_hcd *hcd)
        writel(val, &hw->port_status[0]);
        udelay(10);
 
-       /* Program the field PTC in PORTSC based on the saved speed mode */
-       val = readl(&hw->port_status[0]);
-       val &= ~(TEGRA_USB_PORTSC1_PTC(~0));
-       if (context->port_speed == TEGRA_USB_PHY_PORT_HIGH)
-               val |= TEGRA_USB_PORTSC1_PTC(5);
-       else if (context->port_speed == TEGRA_USB_PHY_PORT_SPEED_FULL)
-               val |= TEGRA_USB_PORTSC1_PTC(6);
-       else if (context->port_speed == TEGRA_USB_PHY_PORT_SPEED_LOW)
-               val |= TEGRA_USB_PORTSC1_PTC(7);
-       writel(val, &hw->port_status[0]);
-       udelay(10);
-
        /* Disable test mode by setting PTC field to NORMAL_OP */
        val = readl(&hw->port_status[0]);
        val &= ~(TEGRA_USB_PORTSC1_PTC(~0));