mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
0c758c8557
This commit fixes how the USB Host HCD handles sudden disconnections. Bugs: - HW channels remain active when the port suddenly disconnects, and previously the channel would be disabled by setting the disabled bit, then waiting for a disabled interrupt. However, ISOC channels do not generate the disabled interrupt when the port is invalid, thus leading to tasks getting indefinitely blocked in hcd_pipe_command(). Fix: On a sudden disconnection, forcibly treat all channels as halted even if their HCCHAR.ChEna bit is still set. We do a soft reset after a port error anyways, so the channels will eventually be reset. Closes https://github.com/espressif/esp-idf/issues/7505 |
||
---|---|---|
.. | ||
test_hcd_bulk.c | ||
test_hcd_common.c | ||
test_hcd_common.h | ||
test_hcd_ctrl.c | ||
test_hcd_intr.c | ||
test_hcd_isoc.c | ||
test_hcd_port.c |