[U-Boot] [PATCH 08/20] usb: hub: Change USB hub descriptor to match USB 3.0 hubs

Simon Glass sjg at chromium.org
Sat Jun 17 03:44:00 UTC 2017


On 16 June 2017 at 07:31, Bin Meng <bmeng.cn at gmail.com> wrote:
> USB 3.0 hubs have a slightly different hub descriptor than USB 2.0
> hubs, with a fixed (rather than variable length) size. Change the
> host controller drivers that access those last two fields
> (DeviceRemovable and PortPowerCtrlMask) to use the union.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  common/usb_hub.c               | 12 +++++++-----
>  drivers/usb/emul/sandbox_hub.c |  7 ++++++-
>  drivers/usb/host/ehci-hcd.c    |  4 ++--
>  drivers/usb/host/xhci.c        |  4 ++--
>  include/usb.h                  | 18 ++++++++++++++----
>  5 files changed, 31 insertions(+), 14 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list