u-boot/drivers/usb/host
Simon Glass 9b9775687f dm: usb: Unbind old block devices when shutting down USB
When 'usb start' is used, block devices are created for any USB flash sticks
and disks, etc. When 'usb stop' is used, these block devices are currently
not removed.

We don't want old block devices hanging around since they can still be
visible to U-Boot. Therefore, when USB is shut down, remove and unbind all
the block devices created by the USB subsystem.

Possibly we should unbind all devices which don't cause problems by being
unbound. Most likely we can remove everything except USB controllers, hubs
and emulators. We can consider that later.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
2016-03-17 21:27:39 -06:00
..
dwc2.c usb: dwc2: disable erroneous overcurrent condition 2016-03-05 02:21:36 +01:00
dwc2.h usb: dwc2: disable erroneous overcurrent condition 2016-03-05 02:21:36 +01:00
ehci-armada100.c usb: ehci-hcd: add enum usb_init_type parameter to ehci_hcd_init. 2013-10-20 23:46:27 +02:00
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 dm: usb: Drop the EHCI weak functions 2015-04-18 11:11:24 -06:00
ehci-fsl.c drivers: usb: fsl: Return if USB_MAX_CONTROLLER_COUNT is incorrect 2015-06-07 15:46:02 +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: Fix warning on aarch64 2016-02-26 19:45:05 +01:00
ehci-marvell.c usb: ehci-marvell.c: Add DM support 2015-10-21 02:25:01 +02:00
ehci-mpc512x.c powerpc/usb:Differentiate USB controller base address 2013-10-24 09:35:09 -07:00
ehci-mx5.c dm: usb: Drop the EHCI weak functions 2015-04-18 11:11:24 -06:00
ehci-mx6.c usb: ehci-mx6: Use shared wait_for_bit 2016-01-25 10:39:49 -05:00
ehci-mxc.c usb: ehci-hcd: add enum usb_init_type parameter to ehci_hcd_init. 2013-10-20 23:46:27 +02:00
ehci-mxs.c usb: ehci: mxs: Add board-specific callbacks 2014-09-29 09:02:16 +02:00
ehci-omap.c usb: ehci-omap: Reset the USB Host OMAP module 2013-12-06 07:02:32 -05:00
ehci-pci.c dm: usb: Add a compatible string for PCI EHCI controller 2016-01-24 12:07:19 +08:00
ehci-ppc4xx.c usb: ehci-hcd: add enum usb_init_type parameter to ehci_hcd_init. 2013-10-20 23:46:27 +02:00
ehci-rmobile.c usb: rmobile: Use ARRAY_SIZE(usb_base_address) instead of CONFIG_USB_MAX_CONTROLLER_COUNT 2014-11-07 16:32:02 +01:00
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: Add support for the host usb-phys 2016-02-23 20:59:10 +01:00
ehci-tegra.c dm: Use dev_get_addr() where possible 2015-08-31 07:57:26 -06:00
ehci-vct.c usb: ehci-hcd: add enum usb_init_type parameter to ehci_hcd_init. 2013-10-20 23:46:27 +02:00
ehci-vf.c usb: host: ehci-vf: Implement board_usb_phy_mode weak function 2016-01-16 07:06:55 +01:00
ehci-zynq.c ARM: zynq: ehci: Added USB host driver support 2014-05-14 07:43:35 +02:00
ehci.h usb: ehci: Be explicit about the BE IO accessors 2016-02-24 19:12:32 +01:00
isp116x-hcd.c include: move various macros to include/linux/kernel.h 2014-11-20 11:28:25 -05:00
isp116x.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Kconfig usb: remove UniPhier EHCI driver 2016-02-14 17:03:42 +09:00
Makefile usb: remove UniPhier EHCI driver 2016-02-14 17:03:42 +09:00
ohci-at91.c drivers: usb: ohci-at91: clean up the PLLB code 2016-02-18 21:34:41 +01:00
ohci-da8xx.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ohci-ep93xx.c arm: ep9315: Return back Cirrus Logic EDB9315A board support 2014-07-04 23:45:48 +02:00
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 include: move various macros to include/linux/kernel.h 2014-11-20 11:28:25 -05:00
ohci-s3c24xx.h dm: Move s3c24xx USB driver to a proper place 2012-10-18 06:54:18 +02:00
ohci-sunxi.c sunxi: H3: Add support for the host usb-phys 2016-02-23 20:59:10 +01: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 usb: add enum usb_init_type parameter to usb_lowlevel_init 2013-10-20 23:45:26 +02:00
sl811.h drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
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 Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
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: Removing unused function usb_phy_reset 2015-12-07 00:15:00 +01:00
xhci-keystone.c usb: xhci: keystone: Remove common dwc3 drv functions calls 2015-07-22 08:55:44 +02:00
xhci-mem.c dm: usb: Support driver model in XHCI 2015-04-18 11:11:28 -06:00
xhci-omap.c usb: host: xhci-omap: fix build break 2015-12-07 00:14:59 +01:00
xhci-pci.c usb: pci: Add XHCI driver for PCI 2015-02-05 22:16:42 -07:00
xhci-ring.c dm: usb: xhci: Use a function to get xhci_ctrl 2015-04-18 11:11:28 -06:00
xhci-uniphier.c ARM: UniPhier: replace <asm/io.h> with <linux/io.h> 2015-05-31 02:53:56 +09:00
xhci-zynqmp.c usb: xhci: zynqmp: Removing unused function usb_phy_reset 2015-12-07 00:15:00 +01:00
xhci.c dm: Rename dev_get_parentdata() to dev_get_parent_priv() 2015-10-23 09:42:28 -06:00
xhci.h dm: usb: Support driver model in XHCI 2015-04-18 11:11:28 -06:00