diff options
author | Philip Oberfichtner <pro@denx.de> | 2024-06-04 12:18:11 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2024-07-06 14:45:34 +0200 |
commit | 2fc8638403c740e2dffb8d338bb58694779fd0f9 (patch) | |
tree | 1659bedfad88038a1e6d858c48280470e259746b /tools/u_boot_pylib/terminal.py | |
parent | 9f7c78b62c096a7cbbd6a51cbaf3dae409759450 (diff) |
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
Diffstat (limited to 'tools/u_boot_pylib/terminal.py')
0 files changed, 0 insertions, 0 deletions