Commit:     af1c51fcb2aea23ec2dfe73b7d66515d1622e689
Parent:     0eb0226c9d819fd2af31ae4fc52bbca81c215369
Author:     Marcelo Tosatti <[EMAIL PROTECTED]>
AuthorDate: Mon Aug 20 18:13:27 2007 -0700
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:55:18 2007 -0700

    USB: EHCI restart speedup
    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]>
    Acked-by: Geoff Levand <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/usb/host/ehci-pci.c |    5 +----
 drivers/usb/host/ehci-ps3.c |    2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index a7816e3..ad0d496 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -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)
-       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);
diff --git a/drivers/usb/host/ehci-ps3.c b/drivers/usb/host/ehci-ps3.c
index 829fe64..03a6b2f 100644
--- a/drivers/usb/host/ehci-ps3.c
+++ b/drivers/usb/host/ehci-ps3.c
@@ -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;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to