Skip to content

Commit 898f881

Browse files
committed
refactor(hcd_dwc): Apply delay for all targets
1 parent 190eca3 commit 898f881

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
@@ -390,13 +390,11 @@ static inline bool _buffer_check_done(pipe_t *pipe)
390390
if (pipe->ep_char.type != USB_DWC_XFER_TYPE_CTRL) {
391391
return true;
392392
}
393-
#if (CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3)
394393
// The HW can't handle two transactions with preamble in one frame.
395394
// TODO: IDF-12986
396395
if (pipe->ep_char.ls_via_fs_hub) {
397396
esp_rom_delay_us(1000);
398397
}
399-
#endif // CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
400398
dma_buffer_block_t *buffer_inflight = pipe->buffers[pipe->multi_buffer_control.rd_idx];
401399
return (buffer_inflight->flags.ctrl.cur_stg == 2);
402400
}

0 commit comments

Comments
 (0)