mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
Merge branch 'refactor/usb_dwc_buff_delay_on_p4_backport_v5.4' into 'release/v5.4'
refactor(hcd_dwc): Apply ls_via_fs_hub delay for all targets (backport to v5.4) See merge request espressif/esp-idf!39149
This commit is contained in:
@ -395,13 +395,11 @@ static inline bool _buffer_check_done(pipe_t *pipe)
|
|||||||
if (pipe->ep_char.type != USB_DWC_XFER_TYPE_CTRL) {
|
if (pipe->ep_char.type != USB_DWC_XFER_TYPE_CTRL) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#if (CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3)
|
|
||||||
// The HW can't handle two transactions with preamble in one frame.
|
// The HW can't handle two transactions with preamble in one frame.
|
||||||
// TODO: IDF-12986
|
// TODO: IDF-12986
|
||||||
if (pipe->ep_char.ls_via_fs_hub) {
|
if (pipe->ep_char.ls_via_fs_hub) {
|
||||||
esp_rom_delay_us(1000);
|
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];
|
dma_buffer_block_t *buffer_inflight = pipe->buffers[pipe->multi_buffer_control.rd_idx];
|
||||||
return (buffer_inflight->flags.ctrl.cur_stg == 2);
|
return (buffer_inflight->flags.ctrl.cur_stg == 2);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user