kernel_samsung_a53x/drivers/usb/gadget/udc
Wayne Chang 587b7fc106 usb: gadget: tegra-xudc: Fix USB3 PHY retrieval logic
[ Upstream commit 84fa943d93c31ee978355e6c6c69592dae3c9f59 ]

This commit resolves an issue in the tegra-xudc USB gadget driver that
incorrectly fetched USB3 PHY instances. The problem stemmed from the
assumption of a one-to-one correspondence between USB2 and USB3 PHY
names and their association with physical USB ports in the device tree.

Previously, the driver associated USB3 PHY names directly with the USB3
instance number, leading to mismatches when mapping the physical USB
ports. For instance, if using USB3-1 PHY, the driver expect the
corresponding PHY name as 'usb3-1'. However, the physical USB ports in
the device tree were designated as USB2-0 and USB3-0 as we only have
one device controller, causing a misalignment.

This commit rectifies the issue by adjusting the PHY naming logic.
Now, the driver correctly correlates the USB2 and USB3 PHY instances,
allowing the USB2-0 and USB3-1 PHYs to form a physical USB port pair
while accurately reflecting their configuration in the device tree by
naming them USB2-0 and USB3-0, respectively.

The change ensures that the PHY and PHY names align appropriately,
resolving the mismatch between physical USB ports and their associated
names in the device tree.

Fixes: b4e19931c98a ("usb: gadget: tegra-xudc: Support multiple device modes")
Cc: stable@vger.kernel.org
Signed-off-by: Wayne Chang <waynec@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20240307030328.1487748-3-waynec@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 09:22:34 +01:00
..
aspeed-vhub
bdc
amd5536udc.h
amd5536udc_pci.c
at91_udc.c
at91_udc.h
atmel_usba_udc.c
atmel_usba_udc.h
bcm63xx_udc.c
core.c USB: gadget: core: adjust uevent timing on gadget unbind 2024-11-18 12:11:57 +01:00
dummy_hcd.c
fotg210-udc.c
fotg210.h
fsl_mxc_udc.c
fsl_qe_udc.c
fsl_qe_udc.h
fsl_udc_core.c
fsl_usb2_udc.h
fusb300_udc.c
fusb300_udc.h
goku_udc.c
goku_udc.h
gr_udc.c
gr_udc.h
Kconfig
lpc32xx_udc.c
m66592-udc.c
m66592-udc.h
Makefile
max3420_udc.c
mv_u3d.h
mv_u3d_core.c
mv_udc.h
mv_udc_core.c
net2272.c usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin 2024-11-19 08:44:59 +01:00
net2272.h
net2280.c
net2280.h
omap_udc.c
omap_udc.h
pch_udc.c
pxa25x_udc.c
pxa25x_udc.h
pxa27x_udc.c
pxa27x_udc.h
r8a66597-udc.c
r8a66597-udc.h
renesas_usb3.c
s3c-hsudc.c
s3c2410_udc.c
s3c2410_udc.h
s3c2410_udc_regs.h
snps_udc_core.c
snps_udc_plat.c
tegra-xudc.c usb: gadget: tegra-xudc: Fix USB3 PHY retrieval logic 2024-11-19 09:22:34 +01:00
trace.c
trace.h
udc-xilinx.c usb: gadget: udc-xilinx: replace memcpy with memcpy_toio 2024-11-08 11:25:51 +01:00