uboot/drivers/usb/host
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
..
Kconfig usb: move CONFIG_USB_XHCI_DWC3 to Kconfig 2016-06-04 00:43:53 +02:00
Makefile usb: move CONFIG_USB_XHCI to Kconfig with renaming 2016-06-04 00:43:53 +02:00
dwc2.c usb: dwc2: Add delay to fix the USB detection problem on SoCFPGA 2016-05-06 20:06:56 +02:00
dwc2.h usb: dwc2: disable erroneous overcurrent condition 2016-03-05 02:21:36 +01:00
ehci-armada100.c
ehci-atmel.c drivers: usb: atmel: clean up the UTMI PLL code 2016-02-18 21:34:41 +01:00
ehci-exynos.c usb: host: ehci: samsung: Move hcor initialization after usb phy setup 2015-12-17 21:54:41 +01:00
ehci-faraday.c
ehci-fsl.c drivers:usb:common:fsl-dt-fixup: Move device-tree fixup framework to common file 2016-04-10 17:18:42 +02:00
ehci-generic.c usb: ehci: Use map_physmem in ehci-generic 2016-02-24 19:12:32 +01:00
ehci-hcd.c usb: ehci: only shutdown opened controller 2016-06-18 00:49:00 +02:00
ehci-marvell.c usb: ehci-marvell.c: Add DM support 2015-10-21 02:25:01 +02:00
ehci-mpc512x.c ehci-ci.h: drop generic USBCMD fields 2016-04-01 17:18:11 -04:00
ehci-msm.c ehci: Add support for Qualcomm EHCI 2016-04-01 17:18:11 -04:00
ehci-mx5.c usb: Rename ehci-fsl.h to ehci-ci.h 2016-04-01 17:18:10 -04:00
ehci-mx6.c usb: ehci-mx6: allow board_ehci_hcd_init to fail 2016-05-06 18:33:26 +02:00
ehci-mxc.c usb: Rename ehci-fsl.h to ehci-ci.h 2016-04-01 17:18:10 -04:00
ehci-mxs.c
ehci-omap.c
ehci-pci.c dm: usb: Add a compatible string for PCI EHCI controller 2016-01-24 12:07:19 +08:00
ehci-ppc4xx.c
ehci-rmobile.c
ehci-spear.c usb: spear: Add support for both SPEAr600 EHCI controllers 2015-08-19 22:30:20 +02:00
ehci-sunxi.c sunxi: H3: Do not clear usb companion clk-gate / reset on remove 2016-04-12 08:58:03 +02:00
ehci-tegra.c dm: Use dev_get_addr() where possible 2015-08-31 07:57:26 -06:00
ehci-vct.c
ehci-vf.c usb: Rename ehci-fsl.h to ehci-ci.h 2016-04-01 17:18:10 -04:00
ehci-zynq.c usb: Rename ehci-fsl.h to ehci-ci.h 2016-04-01 17:18:10 -04:00
ehci.h ehci-hcd: Add init_after_reset 2016-04-01 17:18:08 -04:00
isp116x-hcd.c
isp116x.h
ohci-at91.c drivers: usb: ohci-at91: clean up the PLLB code 2016-02-18 21:34:41 +01:00
ohci-da8xx.c
ohci-ep93xx.c
ohci-generic.c usb: add support of generic OHCI devices 2015-12-17 21:54:41 +01:00
ohci-hcd.c ohci: Add missing cache-flush for hcca area 2015-11-03 17:29:33 +01:00
ohci-lpc32xx.c usb: ohci-lpc32xx: Use shared wait_for_bit 2016-01-25 10:39:49 -05:00
ohci-s3c24xx.c
ohci-s3c24xx.h
ohci-sunxi.c sunxi: H3: Do not clear usb companion clk-gate / reset on remove 2016-04-12 08:58:03 +02:00
ohci.h usb: ohci: enable cache support 2015-08-12 20:47:48 -04:00
r8a66597-hcd.c Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
r8a66597.h usb: Update some EHCI driver licenses to use SPDX 2015-07-21 17:39:38 -06:00
sl811-hcd.c
sl811.h
usb-sandbox.c usb: sandbox: Add support for interrupt operations 2015-11-19 20:27:52 -07:00
usb-uclass.c dm: usb: Unbind old block devices when shutting down USB 2016-03-17 21:27:39 -06:00
utmi-armada100.c
xhci-dwc3.c usb: xhci: dwc3: Adding reset delay requirement as per dwc3 databook 2015-12-07 00:15:00 +01:00
xhci-exynos5.c dm: Use dev_get_addr() where possible 2015-08-31 07:57:26 -06:00
xhci-fsl.c usb: xhci: fsl: Add workaround for USB erratum A008751 2016-06-13 15:16:46 +02:00
xhci-keystone.c usb: xhci: keystone: Remove common dwc3 drv functions calls 2015-07-22 08:55:44 +02:00
xhci-mem.c
xhci-omap.c usb: host: xhci-omap: fix build break 2015-12-07 00:14:59 +01:00
xhci-pci.c
xhci-ring.c
xhci-uniphier.c
xhci-zynqmp.c usb: xhci: zynqmp: Removing unused function usb_phy_reset 2015-12-07 00:15:00 +01:00
xhci.c usb: xhci: Fix vendor command error if the request type is USB_REQ_SET_ADDRESS or USB_REQ_SET_CONFIGURATION. 2016-03-20 18:00:45 +01:00
xhci.h