u-boot-brain/drivers/usb
Peng Fan 1e6fb0e367 usb: ehci: only shutdown opened controller
If the usb controller is not running, no need to shutdown it,
otherwise `usb stop` complains about:
"EHCI failed to shut down host controller".

To i.MX7D SDB, there are two usb ports, one Host, one OTG.
If we only plug one udisk to the Host port and then `usb start`,
the OTG controller for OTG port does not run actually. Then,
if `usb stop`, the OTG controller for OTG port will also be
shutdown, but it is not running.

This patch adds a check to only shutdown the running controller.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: "Stefan Brüns" <stefan.bruens@rwth-aachen.de>
Cc: Stephen Warren <swarren@nvidia.com>
2016-06-18 00:49:00 +02:00
..
common usb: xhci: fsl: Add workaround for USB erratum A008751 2016-06-13 15:16:46 +02:00
dwc3 usb: dwc3: Makefile: Don't build gadget code if USB_GADGET is disabled 2016-05-27 15:39:49 -04:00
emul usb: sandbox: Add a USB emulation driver 2015-11-19 20:27:52 -07:00
eth eth: asix88179: Print packet length properly 2016-04-01 17:18:10 -04:00
gadget usb: dwc2_udc_otg: support 8-bit interface 2016-06-13 15:16:34 +02:00
host usb: ehci: only shutdown opened controller 2016-06-18 00:49:00 +02:00
musb Fix spelling of "occurred". 2016-05-02 18:37:09 -04:00
musb-new usb: gadget: Move CONFIG_USB_GADGET_DUALSPEED to Kconfig 2016-04-20 11:43:27 +02:00
phy usb: phy: omap_usb_phy: Fix USB3_PHY DPLL configuration 2016-06-02 21:42:16 -04:00
ulpi usb: ulpi: Fix compile warning in read/write on 64-bit machines. 2016-04-01 17:18:09 -04:00
Kconfig usb: gadget: Move CONFIG_USB_GADGET_DUALSPEED to Kconfig 2016-04-20 11:43:27 +02:00