[PATCH v2 1/1] usb: Assimilate usb_get_descriptor() to linux

Marek Vasut marex at denx.de
Thu Jun 6 01:57:15 CEST 2024


On 6/4/24 12:18 PM, Philip Oberfichtner wrote:
> 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 at 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

Reviewed-by: Marek Vasut <marex at denx.de>

Thanks


More information about the U-Boot mailing list