usb: xhci: Fix root hub descriptor
authorMark Kettenis <kettenis@openbsd.org>
Sat, 21 Jan 2023 19:28:00 +0000 (20:28 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 27 Jan 2023 19:47:58 +0000 (14:47 -0500)
commite330c8b83e8784d23614f80ca3f12b11ceb515d8
tree854dd767c79cd74589d1bbd762732f2a541b6954
parent06af0e8026ad6f21946f0f5a050ec2e0a1876491
usb: xhci: Fix root hub descriptor

When a system has multiple XHCI controllers, some of the
properties described in the descriptor of the root hub (such as
the number of ports) might differ between controllers.  Fix this
by switching from a single global hub descriptor to a hub
descriptor per controller.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/host/xhci.c
include/usb/xhci.h