Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Simon Glass's avatar
    9b977568
    dm: usb: Unbind old block devices when shutting down USB · 9b977568
    Simon Glass authored
    
    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: default avatarSimon Glass <sjg@chromium.org>
    Tested-by: default avatarStephen Warren <swarren@nvidia.com>
    9b977568
    History
    dm: usb: Unbind old block devices when shutting down USB
    Simon Glass authored
    
    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: default avatarSimon Glass <sjg@chromium.org>
    Tested-by: default avatarStephen Warren <swarren@nvidia.com>