[U-Boot] [PATCH] usb: ehci: remember init mode

Marek Vasut marex at denx.de
Fri Aug 21 07:34:50 CEST 2015


On Friday, August 21, 2015 at 01:38:05 AM, Stephen Warren wrote:
> From: Stephen Warren <swarren at nvidia.com>
> 
> When an EHCI device is registered in device mode, the HW isn't actually
> initialized at all, and hence isn't left in a running state. Consequently,
> when the device is deregistered, ehci_shutdown() will fail, since the HW
> bits it expects to see set in response to its shutdown requests will not
> be sent, and the message "EHCI failed to shut down host controller." will
> be printed.
> 
> Fix ehci-hcd.c to remember whether the device was registered in host or
> device mode, and only call ehci_shutdown() for host mode registrations.

Hi,

Shouldn't you instead check if the controller is running or not and shut
it down based on that ?

Best regards,
Marek Vasut


More information about the U-Boot mailing list