mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
usb: hub: Call usb_update_hub_device() after hub descriptor is fetched
After fetching hub descriptor, we need to call USB uclass operation update_hub_device() to notify HCD to do some preparation work. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -788,6 +788,17 @@ static int usb_hub_configure(struct usb_device *dev)
|
|||||||
"" : "no ");
|
"" : "no ");
|
||||||
|
|
||||||
#ifdef CONFIG_DM_USB
|
#ifdef CONFIG_DM_USB
|
||||||
|
/*
|
||||||
|
* Update USB host controller's internal representation of this hub
|
||||||
|
* after the hub descriptor is fetched.
|
||||||
|
*/
|
||||||
|
ret = usb_update_hub_device(dev);
|
||||||
|
if (ret < 0 && ret != -ENOSYS) {
|
||||||
|
debug("%s: failed to update hub device for HCD (%x)\n",
|
||||||
|
__func__, ret);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A maximum of seven tiers are allowed in a USB topology, and the
|
* A maximum of seven tiers are allowed in a USB topology, and the
|
||||||
* root hub occupies the first tier. The last tier ends with a normal
|
* root hub occupies the first tier. The last tier ends with a normal
|
||||||
|
Reference in New Issue
Block a user