diff options
author | Simon Glass <sjg@chromium.org> | 2016-03-13 08:22:33 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-03-17 21:27:39 -0600 |
commit | 9b9775687f85c8b91d849e7dfdc380db4730672c (patch) | |
tree | 2489ce7db4881e745531b27d0f343e2afeb86932 /drivers/pinctrl/uniphier/pinctrl-ph1-ld4.c | |
parent | c81d0d215ea38d3b8cf3684a57f4ecaca3c01b03 (diff) | |
download | talos-obmc-uboot-9b9775687f85c8b91d849e7dfdc380db4730672c.tar.gz talos-obmc-uboot-9b9775687f85c8b91d849e7dfdc380db4730672c.zip |
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>
Diffstat (limited to 'drivers/pinctrl/uniphier/pinctrl-ph1-ld4.c')
0 files changed, 0 insertions, 0 deletions