android_kernel_motorola_sm6375/drivers/phy
Repository files (latest commit first)
Filename Latest commit message Latest commit date
BH Hsieh 074f4e6284 phy: tegra: xusb: reset VBUS & ID OVERRIDE
commit 55f1a5f7c97c3c92ba469e16991a09274410ceb7 upstream.

Observed VBUS_OVERRIDE & ID_OVERRIDE might be programmed
with unexpected value prior to XUSB PADCTL driver, this
could also occur in virtualization scenario.

For example, UEFI firmware programs ID_OVERRIDE=GROUNDED to set
a type-c port to host mode and keeps the value to kernel.
If the type-c port is connected a usb host, below errors can be
observed right after usb host mode driver gets probed. The errors
would keep until usb role class driver detects the type-c port
as device mode and notifies usb device mode driver to set both
ID_OVERRIDE and VBUS_OVERRIDE to correct value by XUSB PADCTL
driver.

[  173.765814] usb usb3-port2: Cannot enable. Maybe the USB cable is bad?
[  173.765837] usb usb3-port2: config error

Taking virtualization into account, asserting XUSB PADCTL
reset would break XUSB functions used by other guest OS,
hence only reset VBUS & ID OVERRIDE of the port in
utmi_phy_init.

Fixes: bbf711682c ("phy: tegra: xusb: Add Tegra186 support")
Cc: [email protected]
Change-Id: Ic63058d4d49b4a1f8f9ab313196e20ad131cc591
Signed-off-by: BH Hsieh <[email protected]>
Signed-off-by: Henry Lin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2025-03-13 12:43:25 +01:00
..
allwinner
amlogic
broadcom
cadence
freescale
hisilicon
lantiq
marvell
mediatek
motorola phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins 2023-10-25 11:53:25 +02:00
mscc
qualcomm
ralink
renesas phy: renesas: rcar-gen3-usb2: Fix returning wrong error code 2024-02-23 08:25:06 +01:00
rockchip phy/rockchip: inno-hdmi: do not power on rk3328 post pll on reg write 2023-09-23 10:59:53 +02:00
samsung
socionext
st
tegra phy: tegra: xusb: reset VBUS & ID OVERRIDE 2025-03-13 12:43:25 +01:00
ti phy: ti: phy-omap-usb2: Fix NULL pointer dereference for SRP 2024-02-23 08:25:06 +01:00
Kconfig
Makefile
phy-core-mipi-dphy.c
phy-core.c phy: core: Fix that API devm_of_phy_provider_unregister() fails to unregister the phy provider 2025-02-01 18:18:49 +01:00
phy-lpc18xx-usb-otg.c
phy-pistachio-usb.c
phy-xgene.c