esp-idf/components/usb
Saurabh Kumar Bansal 7010349a9a usb_host: Hub driver skips fetching string descriptors if their index is 0
When a USB does not support a particular string dsecriptor (e.g.,
manufacturer, product, and serial number), the string descriptors corresponding
index will be set to 0 in the device descriptor (e.g., iManufacturer, iProduct,
iString).

Previously, the Hub driver would always attempt to fetch the all three string
descriptors, thus leading an error in CHECK_SHORT_SER_STR_DESC if the device
did not support the descriptor.

This commit fixes the Hub drvier by skipping the enumeration stages of a
particular descriptor if its index is 0 (i.e., not supported by the device).
2023-02-08 23:12:54 +05:30
..
include C/Cxx: unify static assertions with the macro ESP_STATIC_ASSERT 2022-11-21 16:18:08 +08:00
private_include usb_host: Add check to prevent submitting already inflight transfers 2022-10-31 13:56:59 +08:00
test_apps usb: Refactor USB Host tests 2022-11-30 18:12:54 +01:00
.build-test-rules.yml usb: Refactor USB Host tests 2022-11-30 18:12:54 +01:00
CMakeLists.txt usb_host: Rename struct/ll/hal files to use "usb_dwc" prefix 2022-09-16 16:45:26 +08:00
Kconfig Add USB Host Library 2021-08-24 23:28:00 +08:00
hcd_dwc.c usb_host: Rename struct/ll/hal symbols to use "usb_dwc" prefix 2022-09-16 16:45:26 +08:00
hub.c usb_host: Hub driver skips fetching string descriptors if their index is 0 2023-02-08 23:12:54 +05:30
maintainers.md usb: Fix how the HCD handles sudden disconnection 2021-11-02 14:30:58 +08:00
usb_helpers.c usbh_print_intf_desc prints wrong value for tbInterfaceClass (IDFGH-9000) 2022-05-21 15:54:21 -07:00
usb_host.c usb: Fix incorrect bmRequestType direction flag in USB Host Library 2022-12-06 18:10:45 +08:00
usb_phy.c usb: Allow settings of all signals in usb_phy 2022-10-18 09:18:29 +02:00
usb_private.c Add USB Host Library 2021-08-24 23:28:00 +08:00
usbh.c usb_host: Fixed incorrect opening devices from multiple clients 2022-10-31 13:56:44 +08:00