esp-idf/components/usb
Saurabh Kumar Bansal f90ccf9613 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-13 18:15:36 +05:30
..
include C/Cxx: unify static assertions with the macro ESP_STATIC_ASSERT 2022-12-05 18:16:08 +08:00
private_include usb_host: Add check to prevent submitting already inflight transfers 2022-11-07 13:50:59 +08:00
test usb: Refactor USB Host tests 2022-12-13 22:26:47 +08:00
CMakeLists.txt usb_host: Rename struct/ll/hal files to use "usb_dwc" prefix 2022-12-13 21:36:00 +08:00
hcd_dwc.c usb_host: Rename struct/ll/hal symbols to use "usb_dwc" prefix 2022-12-13 21:36:00 +08:00
hub.c usb_host: Hub driver skips fetching string descriptors if their index is 0 2023-02-13 18:15:36 +05:30
Kconfig Add USB Host Library 2021-08-24 23:28:00 +08:00
maintainers.md usb: Fix how the HCD handles sudden disconnection 2021-11-11 16:25:01 +08:00
usb_helpers.c usb_host: Fix interface descriptor parsing 2023-02-13 18:02:35 +05:30
usb_host.c usb: Fix incorrect bmRequestType direction flag in USB Host Library 2022-12-13 22:28:02 +08:00
usb_phy.c usb: Add usb_phy driver to support operations on USB PHY 2021-09-13 12:39:56 +08: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-11-07 13:50:33 +08:00