[PATCH] ehci-hcd.c: handle EHCI_HAS_TT in ehci_reset() during startup

Sascha Hauer s.hauer at pengutronix.de
Tue Sep 13 03:34:19 EDT 2011


On Mon, Sep 12, 2011 at 02:26:00PM +0400, Antony Pavlov wrote:
> Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
> ---
>  drivers/usb/host/ehci-hcd.c |    9 ++-------
>  1 files changed, 2 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
> index 60fc181..883dc07 100644
> --- a/drivers/usb/host/ehci-hcd.c
> +++ b/drivers/usb/host/ehci-hcd.c
> @@ -921,15 +921,10 @@ static int ehci_probe(struct device_d *dev)
>  	host->submit_control_msg = submit_control_msg;
>  	host->submit_bulk_msg = submit_bulk_msg;
>  
> -	if (ehci->flags & EHCI_HAS_TT) {
> -		/* Set to host mode */
> -		reg = ehci_readl(ehci->hcor + USBMODE);
> -		reg |= USBMODE_CM_HC;
> -		writel(reg, ehci->hcor + USBMODE);
> -	}
> -
>  	usb_register_host(host);
>  
> +	ehci_reset(ehci);
> +

ehci_reset is called from ehci_init. Isn't that enough or do we have to
call it explicitely here?

Sascha

>  	reg = HC_VERSION(ehci_readl(&ehci->hccr->cr_capbase));
>  	dev_info(dev, "USB EHCI %x.%02x\n", reg >> 8, reg & 0xff);
>  
> -- 
> 1.7.5.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list