u-boot/drivers
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
..
adc adc: rockchip-saradc: Use vdd-microvolts prop as fallback 2024-10-26 10:46:48 +08:00
ata Merge patch series "Implement ACPI on aarch64" 2024-10-27 18:44:13 -06:00
axi
bios_emulator bios_emulator: add missing includes to debug.c 2024-11-16 20:54:16 -06:00
block block: make blk_create_device() static 2024-10-24 11:20:58 -06:00
bootcount drivers: bootcount: Add ZynqMP specific bootcount support 2024-11-15 14:32:47 +01:00
bus global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
button dm: button: support remapping phone keys 2024-11-16 19:49:05 -06:00
cache driver: sifive ccache: enable TRUNKCLOCKGATE and REGIONCLOCKGATE 2024-11-06 18:56:51 +08:00
clk clk: renesas: Fix missing unbind on driver look up failure 2024-11-03 12:25:57 +01:00
core dm: Add dm_remove_devices_active() for ordered device removal 2024-11-24 15:41:28 -06:00
cpu Merge patch series "Implement ACPI on aarch64" 2024-10-27 18:44:13 -06:00
crypto drivers/crypto: aspeed: Add Caliptra ECDSA384 support 2024-10-21 17:52:52 -06:00
ddr imx: Support i.MX93 9X9 QSB board 2024-10-25 09:07:16 -03:00
demo
dfu dfu: add scsi backend 2024-11-20 17:57:58 +01:00
dma dma: ti: k3-udma: Move DMA channel[0] allocation to probe and add udma_remove() 2024-10-17 18:21:19 -06:00
extcon
fastboot net: introduce alternative implementation as net/lwip/ 2024-10-16 11:11:56 -06:00
firmware global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
fpga drivers: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:48 -06:00
fuzz
fwu-mdata
gpio gpio: qcom_pmic: add again the quirk to skip GPIO configuration on PM8550 2024-11-20 17:57:57 +01:00
hwspinlock
i2c i2c: mxc_i2c: Convert to use livetree API for fdt access 2024-10-25 09:07:39 -03:00
input global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
iommu Merge patch series "Fix device removal order for Apple dart iommu" 2024-11-24 15:41:32 -06:00
led led: include cyclic.h in led_sw_blink.c 2024-10-23 06:52:38 +02:00
mailbox global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
memory memory: ti-aemif-cs: Compute timing configuration from DT parsing 2024-10-29 18:45:22 -06:00
mfd
misc wdt: imx8qxp: add option to control external PMIC wdt via IMX8 SCU 2024-11-25 23:07:37 -03:00
mmc mmc: msm_sdhci: enable vqmmc at probe if available 2024-11-20 17:57:57 +01:00
mtd mtd: spi-nor: Guard SPI_STACKED_PARALLEL with DM_SPI check 2024-10-31 13:34:29 -06:00
mux Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
net net: fec_mxc: fix probing for imx8qxp 2024-11-25 23:07:37 -03:00
nvme global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
pch
pci Merge patch series "Implement ACPI on aarch64" 2024-10-27 18:44:13 -06:00
pci_endpoint
phy phy: qcom: Add SM8150 to QMP UFS PHY driver 2024-11-20 17:57:58 +01:00
pinctrl pinctrl: rockchip: allow to build for TPL 2024-11-11 15:14:14 +08:00
power imx: power-domain: Convert to use livetree API for fdt access 2024-10-25 09:07:35 -03:00
pwm
qe
ram Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
reboot-mode
remoteproc global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
reset global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
rng global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
rtc Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
scsi scsi: fix disk capacity too small by one sector 2024-11-01 13:34:32 -06:00
serial Merge patch series "Implement ACPI on aarch64" 2024-10-27 18:44:13 -06:00
sm
smem
soc
sound
spi spi: Fix missed rename from SPI_ADVANCE to SPI_STACKED_PARALLEL 2024-11-25 15:29:45 -06:00
spmi
sysinfo dm: sysinfo: Shorten the SYSINFO_ID prefix 2024-11-17 13:12:54 -06:00
sysreset global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
tee
thermal
timer x86: Sync up tsc_timer with Linux 2024-10-18 14:10:21 -06:00
tpm global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
ufs ufs: Add Support for Qualcomm UFS HC driver 2024-10-14 08:56:03 +02:00
usb usb: dwc3-generic: set "mode" based on caller of dwc3_generic_probe() 2024-12-13 14:14:25 -06:00
video drivers/video/vesa: use MTRRs only on x86 2024-11-04 16:41:38 -06:00
virtio virtio: blk: introduce virtio-block erase support 2024-10-18 14:10:21 -06:00
w1
w1-eeprom
watchdog wdt: imx8qxp: add option to control external PMIC wdt via IMX8 SCU 2024-11-25 23:07:37 -03:00
xen
Kconfig
Makefile global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00