]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: Assimilate usb_get_descriptor() to linux
authorPhilip Oberfichtner <pro@denx.de>
Tue, 4 Jun 2024 10:18:11 +0000 (12:18 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 6 Jul 2024 12:45:34 +0000 (14:45 +0200)
commit2fc8638403c740e2dffb8d338bb58694779fd0f9
tree1659bedfad88038a1e6d858c48280470e259746b
parent9f7c78b62c096a7cbbd6a51cbaf3dae409759450
usb: Assimilate usb_get_descriptor() to linux

Before this commit, usb_get_descriptor() failed for some flakey USB
devices. We hereby adopt the more robust linux implementation [1].

For instance, for the "Alcor Micro Corp. Flash Drive" (VID 0x058f, PID
0x6387), the following behavior occurs from time to time:

=> usb start
starting USB...
Bus xhci_pci: Register 10000840 NbrPorts 16
Starting the controller
USB XHCI 1.20
scanning bus xhci_pci for devices... usb_new_device: Cannot read configuration, skipping device 058f:6387

Signed-off-by: Philip Oberfichtner <pro@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
[1] From a38297e3fb012 (Linux 6.9), see
    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/usb/core/message.c?h=v6.9#n781
common/usb.c