]> Git Repo - linux.git/commitdiff
USB: EHCI restart speedup
authorMarcelo Tosatti <[email protected]>
Tue, 21 Aug 2007 01:13:27 +0000 (18:13 -0700)
committerGreg Kroah-Hartman <[email protected]>
Fri, 12 Oct 2007 21:55:18 +0000 (14:55 -0700)
It is not necessary to powerdown the ports on ehci_pci_reinit() when the
chip reset already did that.  Removing this saves 20ms during restart
after poweroff paths (which OLPC uses a lot).

To ensure driver startup then behaves consistently, force a reset during
driver startup.  (Not doing this was an accident of some previous changes
to the init sequence.)

Make the corresponding change in the PS3 support.  It's not clear what
ehci-fsl should do here; it has similar code to the PS3.

Signed-off-by: Marcelo Tosatti <[email protected]>
Signed-off-by: David Brownell <[email protected]>
Cc: <[email protected]>
Acked-by: Geoff Levand <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/host/ehci-pci.c
drivers/usb/host/ehci-ps3.c

index a7816e392a8520fb264ee961aafbf4ba14b993eb..ad0d4965f2fb5df834cc54d0f5b6eed29d1e5e3b 100644 (file)
@@ -58,8 +58,6 @@ static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev)
        if (!retval)
                ehci_dbg(ehci, "MWI active\n");
 
-       ehci_port_power(ehci, 0);
-
        return 0;
 }
 
@@ -156,8 +154,7 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
                break;
        }
 
-       if (ehci_is_TDI(ehci))
-               ehci_reset(ehci);
+       ehci_reset(ehci);
 
        /* at least the Genesys GL880S needs fixup here */
        temp = HCS_N_CC(ehci->hcs_params) * HCS_N_PCC(ehci->hcs_params);
index 829fe649a981fdc03ad6f5cb64df4f9f0b8e4024..03a6b2f4e6ed81e722d855ee3bc76bdf6242648e 100644 (file)
@@ -47,7 +47,7 @@ static int ps3_ehci_hc_reset(struct usb_hcd *hcd)
        if (result)
                return result;
 
-       ehci_port_power(ehci, 0);
+       ehci_reset(ehci);
 
        return result;
 }
This page took 0.057295 seconds and 4 git commands to generate.