diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-06-17 19:33:53 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-21 23:39:36 (GMT) |
commit | fd1bd21bf07d0770bff7b477d501b706dac9987d (patch) | |
tree | 445fde217c90b8eb340f8a4599bf2947e544920e /common/cmd_scsi.c | |
parent | b2f219b081de964583a5621bc59d43eb75521598 (diff) | |
download | u-boot-fsl-qoriq-fd1bd21bf07d0770bff7b477d501b706dac9987d.tar.xz |
dm: usb: Do not assume that first child is always a hub
On some single port (otg) controllers there is no emulated root hub, so
the first child (if any) may be one of: UCLASS_MASS_STORAGE,
UCLASS_USB_DEV_GENERIC or UCLASS_USB_HUB.
All three of these (and in the future others) are suitable for our
purposes, remove the check for the device being a hub, and add a check to
deal with the fact that there may be no child-dev.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/cmd_scsi.c')
0 files changed, 0 insertions, 0 deletions