usb: host: tegra: Remove clear PORT_RESUME to clear PORT_SUSPEND
authorJay Cheng <jacheng@nvidia.com>
Tue, 7 Dec 2010 15:15:32 +0000 (10:15 -0500)
committerBenoit Goby <benoit@android.com>
Fri, 10 Dec 2010 03:59:45 +0000 (19:59 -0800)
PORT_SUSPEND bit will be cleared by the host controller when PORT_RESUME
change to 0.

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

index b02eabb5a61db863162dc83234a8b6a145afd793..d990c1cd9181eda72e28701d466fb7309eb143c1 100644 (file)
@@ -170,10 +170,6 @@ static int tegra_ehci_hub_control(
                if (handshake(ehci, status_reg, PORT_RESUME, 0, 2000))
                        pr_err("%s: timeout waiting for PORT_RESUME\n", __func__);
 
-               /* write PORT_RESUME to 0 to clear PORT_SUSPEND bit */
-               temp &= ~(PORT_RESUME | PORT_SUSPEND);
-               ehci_writel(ehci, temp, status_reg);
-
                /* polling PORT_SUSPEND until the controller clear this bit */
                if (handshake(ehci, status_reg, PORT_SUSPEND, 0, 2000))
                        pr_err("%s: timeout waiting for PORT_SUSPEND\n", __func__);