[Cbe-oss-dev] [PATCH 1/2 v2] usb: Remove ehci_reset call from ehci_run
Alan Stern
stern at rowland.harvard.edu
Tue Dec 6 03:46:19 EST 2011
On Thu, 1 Dec 2011, Geoff Levand wrote:
> Remove the ehci_reset() call done in the ehci_run() routine of the
> USB EHCI host controller driver and add an ehci_reset() call to the
> probe processing of all EHCI platform drivers that do not already
> call ehci_reset().
>
> The call to ehci_reset() from ehci_run() was problematic for several
> platform drivers and unnecessary for others. This change moves the
> decision of a call ehci_reset() at driver startup to the platform
> driver code.
>
> Signed-off-by: Geoff Levand <geoff at infradead.org>
> ---
>
> On Fri, 2011-11-25 at 10:52 -0500, Alan Stern wrote:
> > Let's see... You missed ehci-octeon.c. Also, the change to
> > ehci-au1xxx.c is correct but in all the other platform drivers, you
> > added the call to ehci_reset() in the wrong place. The call must be
> > made either in the probe routine _before_ the call to usb_add_hcd() or
> > else in the reset routine (which many of the drivers call *_setup).
> >
> > But you're definitely heading in the right direction. :-)
>
> We're committed over here! Reviews/checks appreciated.
This looks good.
Acked-by: Alan Stern <stern at rowland.harvard.edu>
Alan Stern
More information about the cbe-oss-dev
mailing list