u-boot/drivers/usb/dwc3
Siddharth Vadapalli 7af18fc5ed usb: dwc3-generic: set "mode" based on caller of dwc3_generic_probe()
There are only two callers of "dwc3_generic_probe()", namely:
1. dwc3_generic_peripheral_probe()
2. dwc3_generic_host_probe()
Currently, the "mode" is set based on the device-tree node of the
platform device. Also, the DWC3 core doesn't support updating the "mode"
dynamically at runtime if it is set to "OTG", i.e. "OTG" is treated as a
separate mode in itself, rather than being treated as a mode which should
eventually lead to "host"/"peripheral".

Given that the callers of "dwc3_generic_probe()" clarify the expected
"mode" of the USB Controller, use that "mode" instead of the one
specified in the device-tree. This shall allow the USB Controller to
function both as a "Host" and as a "Peripheral" when the "mode" is "otg"
in the device-tree, based on the caller of "dwc3_generic_probe()".

Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
2024-12-13 14:14:25 -06:00
..
core.c usb: dwc3: support USB 3.1 controllers 2024-08-11 19:45:36 +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.c usb: dwc3-generic: set "mode" based on caller of dwc3_generic_probe() 2024-12-13 14:14:25 -06: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: invalidate dcache on buffer used in interrupt handling 2024-10-15 11:03:57 +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: Add dwc3 glue driver for am62 2024-05-15 10:45:02 -06:00
linux-compat.h tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
Makefile global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -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