Skip to content

Commit 79c66cc

Browse files
committed
Merge branch 'refactor/usb_dwc_buff_delay_on_p4' into 'master'
refactor(hcd_dwc): Apply ls_via_fs_hub delay for all targets See merge request espressif/esp-idf!38946
2 parents 27099e1 + 898f881 commit 79c66cc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

components/usb/hcd_dwc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,11 @@ static inline bool _buffer_check_done(pipe_t *pipe)
395395
if (pipe->ep_char.type != USB_DWC_XFER_TYPE_CTRL) {
396396
return true;
397397
}
398-
#if (CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3)
399398
// The HW can't handle two transactions with preamble in one frame.
400399
// TODO: IDF-12986
401400
if (pipe->ep_char.ls_via_fs_hub) {
402401
esp_rom_delay_us(1000);
403402
}
404-
#endif // CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
405403
dma_buffer_block_t *buffer_inflight = pipe->buffers[pipe->multi_buffer_control.rd_idx];
406404
return (buffer_inflight->flags.ctrl.cur_stg == 2);
407405
}

0 commit comments

Comments
 (0)