Skip to content
Snippets Groups Projects
Select Git revision
  • aaad108b889c6980a2d05262a2f7febb14f94d68
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
8 results

usb_storage.c

Blame
  • Forked from Reform / reform-boundary-uboot
    42426 commits behind the upstream repository.
    • Kim B. Heino's avatar
      aaad108b
      USB storage count · aaad108b
      Kim B. Heino authored
      
      Here's another USB storage patch. Currently U-Boot handles storage
      devices #0 - #4 as valid devices, even if there is none connected. This
      patch fixes usb_stor_get_dev() to check detected device count instead
      of MAX-define.
      
      This is very important for ill behaving devices. usb_dev_desc[] can be
      partially initialized if device probe fails.
      
      After fixing get_dev() it was easy to fix "usb part" etc commands.
      Previously it outputed "Unknown partition table" five times, now it's
      "no USB devices available".
      
      Signed-off-by: default avatarKim B. Heino <Kim.Heino@bluegiga.com>
      aaad108b
      History
      USB storage count
      Kim B. Heino authored
      
      Here's another USB storage patch. Currently U-Boot handles storage
      devices #0 - #4 as valid devices, even if there is none connected. This
      patch fixes usb_stor_get_dev() to check detected device count instead
      of MAX-define.
      
      This is very important for ill behaving devices. usb_dev_desc[] can be
      partially initialized if device probe fails.
      
      After fixing get_dev() it was easy to fix "usb part" etc commands.
      Previously it outputed "Unknown partition table" five times, now it's
      "no USB devices available".
      
      Signed-off-by: default avatarKim B. Heino <Kim.Heino@bluegiga.com>