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
private_include
test
CMakeLists.txt
Kconfig
hcd_dwc.c
hub.c usb_host: Hub driver skips fetching string descriptors if their index is 0 2023-02-13 18:15:36 +05:30
maintainers.md
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_private.c
usbh.c