u-boot/drivers/usb/dwc3
Varadarajan Narayanan 068f83499c usb: dwc3: core: Fix timeout check
dwc3_core_init loops 'timeout' times to check if the IP block is out
of reset using 'while (timeout--)'. If there is some issue and
the block doesn't come out of reset, the loop will run till
'timeout' becomes zero and the post decrement operator would set
timeout to 0xffffffff. Though the IP block is not out reset, the
subsequent if check 'if !timeout' would fail as timeout is not
equal to zero and the function proceeds with the initialization.

Use poll API instead to resolve this.

Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
2025-05-25 15:44:13 +02:00
..
core.c usb: dwc3: core: Fix timeout check 2025-05-25 15:44:13 +02:00
core.h usb: dwc3: allocate setup_buf with dma_alloc_coherent() 2024-10-15 11:03:56 +02:00
dwc3-am62.c usb: dwc3: Add dwc3 glue driver for am62 2024-05-15 10:45:02 -06:00
dwc3-generic-sti.c usb: dwc3-generic: Add STih407 support 2025-02-11 09:00:42 +01:00
dwc3-generic.c usb: dwc3-generic: Reorder include 2025-02-11 09:00:42 +01:00
dwc3-generic.h usb: dwc3-generic: Add the size of regs property to glue structure 2023-02-22 19:40:11 +01:00
dwc3-layerscape.c usb: gadget: dwc3: Convert interrupt handling to usb_gadget_generic_ops 2024-07-05 14:08:32 +02:00
dwc3-meson-g12a.c usb: dwc3: meson-g12a: drop usb.h and make dwc3_meson_g12a_force_mode static 2024-06-25 15:25:10 +02:00
dwc3-meson-gxl.c usb: dwc3: meson-gxl: drop usb-gx.h and make dwc3_meson_gxl_force_mode static 2024-06-25 15:25:10 +02:00
dwc3-omap.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
dwc3-uniphier.c usb: dwc3-uniphier: Use dwc3-generic instead of xhci-dwc3 2023-02-22 19:40:11 +01:00
ep0.c usb: dwc3: invalidate dcache on buffer used in interrupt handling 2024-10-15 11:03:57 +02:00
gadget.c usb: dwc3: gadget: Fix excepts/expects typo 2025-04-10 09:58:56 +02:00
gadget.h tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
io.h usb: dwc3: invalidate dcache on buffer used in interrupt handling 2024-10-15 11:03:57 +02:00
Kconfig usb: dwc3-generic: Add STih407 support 2025-02-11 09:00:42 +01:00
linux-compat.h tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
Makefile Kbuild: Always use $(PHASE_) 2025-04-11 12:16:44 -06:00
samsung_usb_phy.c drivers: usb: Remove duplicate newlines 2024-07-22 10:53:06 -06:00
ti_usb_phy.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00