refactor(hcd_dwc): Apply ls_via_fs_hub delay for all targets

This commit is contained in:
Roman Leonov
2025-05-14 19:49:22 +08:00
parent fe75355314
commit 2034360d96

View File

@@ -390,13 +390,11 @@ static inline bool _buffer_check_done(pipe_t *pipe)
if (pipe->ep_char.type != USB_DWC_XFER_TYPE_CTRL) {
return true;
}
#if (CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3)
// The HW can't handle two transactions with preamble in one frame.
// TODO: IDF-12986
if (pipe->ep_char.ls_via_fs_hub) {
esp_rom_delay_us(1000);
}
#endif // CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
dma_buffer_block_t *buffer_inflight = pipe->buffers[pipe->multi_buffer_control.rd_idx];
return (buffer_inflight->flags.ctrl.cur_stg == 2);
}