mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
The hardware field `ghwcfg2.numhstchnl` is zero-based, meaning the actual number of available host channels is `numhstchnl + 1`. This off-by-one error caused the USB Host controller to report N-1 channels instead of N, leading to premature "No more HCD channels available" errors when connecting multiple devices. This issue affects ESP32-S2, ESP32-S3, and ESP32-P4.