[U-Boot] [PATCH 10/22] dm: usb: Do not assume that first child is always a hub

Simon Glass sjg at chromium.org
Tue Jul 7 20:35:19 CEST 2015


On 28 June 2015 at 21:45, Simon Glass <sjg at chromium.org> wrote:
> On 17 June 2015 at 13:33, Hans de Goede <hdegoede at redhat.com> wrote:
>> 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 at redhat.com>
>> ---
>>  common/cmd_usb.c              |  9 ++++-----
>>  drivers/usb/host/usb-uclass.c | 10 +++++-----
>>  2 files changed, 9 insertions(+), 10 deletions(-)
>
> Acked-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list