From 2034360d965e2c6a89317f34ad79948d002a0996 Mon Sep 17 00:00:00 2001 From: Roman Leonov Date: Wed, 14 May 2025 19:49:22 +0800 Subject: [PATCH] refactor(hcd_dwc): Apply ls_via_fs_hub delay for all targets --- components/usb/hcd_dwc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/usb/hcd_dwc.c b/components/usb/hcd_dwc.c index 36d8ab84de..22b06e6339 100644 --- a/components/usb/hcd_dwc.c +++ b/components/usb/hcd_dwc.c @@ -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); }