]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: ehci: remember init mode
authorStephen Warren <swarren@nvidia.com>
Thu, 20 Aug 2015 23:38:05 +0000 (17:38 -0600)
committerMarek Vasut <marex@denx.de>
Mon, 7 Sep 2015 11:41:05 +0000 (13:41 +0200)
commit49b4c5c700077e387fef61a7225f92d190ee0c45
tree18454cc77d1f88d4755286c8d7397f27e07a0e8d
parent542e02ad41d2083c4a089d25962477c6f66cde9f
usb: ehci: remember init mode

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.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci.h