usb: ehci: tegra: Don't change the hcd state on restart
authorBenoit Goby <benoit@android.com>
Tue, 28 Dec 2010 23:33:49 +0000 (15:33 -0800)
committerBenoit Goby <benoit@android.com>
Tue, 28 Dec 2010 23:46:42 +0000 (15:46 -0800)
usbcore will change it once the bus has been resumed. This fixes
the "hub 3-0:1.0: activate --> -22" error on resume.

Change-Id: Icff283a60634b4d003e77aafb5a5127d415cbd3f
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/host/ehci-tegra.c

index d990c1cd9181eda72e28701d466fb7309eb143c1..21c58dfb9035f94af08d8f408e8d5f3adc6469ff 100644 (file)
@@ -211,7 +211,6 @@ static void tegra_ehci_restart(struct usb_hcd *hcd)
        ehci_writel(ehci, ehci->command, &ehci->regs->command);
 
        down_write(&ehci_cf_port_reset_rwsem);
-       hcd->state = HC_STATE_RUNNING;
        ehci_writel(ehci, FLAG_CF, &ehci->regs->configured_flag);
        /* flush posted writes */
        ehci_readl(ehci, &ehci->regs->command);