diff options
author | Stephen Warren <swarren@nvidia.com> | 2015-08-20 17:38:05 -0600 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-09-07 13:41:05 +0200 |
commit | 49b4c5c700077e387fef61a7225f92d190ee0c45 (patch) | |
tree | 18454cc77d1f88d4755286c8d7397f27e07a0e8d /drivers/usb/host/ehci.h | |
parent | 542e02ad41d2083c4a089d25962477c6f66cde9f (diff) | |
download | u-boot-imx-49b4c5c700077e387fef61a7225f92d190ee0c45.zip u-boot-imx-49b4c5c700077e387fef61a7225f92d190ee0c45.tar.gz u-boot-imx-49b4c5c700077e387fef61a7225f92d190ee0c45.tar.bz2 |
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>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r-- | drivers/usb/host/ehci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 3379c29..b41c04a 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h @@ -242,6 +242,7 @@ struct ehci_ops { }; struct ehci_ctrl { + enum usb_init_type init; struct ehci_hccr *hccr; /* R/O registers, not need for volatile */ struct ehci_hcor *hcor; int rootdev; |