usb: xhci: Implement update_hub_device() operation
authorBin Meng <bmeng.cn@gmail.com>
Wed, 19 Jul 2017 13:51:19 +0000 (21:51 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:36 +0000 (23:34 +0200)
commitd228ca362b0f2aa3679866c7a40702085653233e
tree1dc1e45ec92985094792ebfc205793bd8a366b16
parent81060bb1c02abb242b73f118ce297dbe483a40f7
usb: xhci: Implement update_hub_device() operation

There is no way to know whether the attached device is a hub or
not in advance before the device's descriptor is fetched. But
once we know it's a high speed hub, per the xHCI spec, we need
to tell xHC it's a hub device by initializing hub-related fields
in the input slot context.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/xhci.c