mirror-linux/drivers/phy
Johan Hovold 667347e338 phy: qcom-qmp-combo: fix broken power on
[ Upstream commit 7a7d86d14d ]

The PHY is powered on during phy-init by setting the SW_PWRDN bit in the
COM_POWER_DOWN_CTRL register and then setting the same bit in the in the
PCS_POWER_DOWN_CONTROL register that belongs to the USB part of the
PHY.

Currently, whether power on succeeds depends on probe order and having
the USB part of the PHY be initialised first. In case the DP part of the
PHY is instead initialised first, the intended power on of the USB block
results in a corrupted DP_PHY register (e.g. DP_PHY_AUX_CFG8).

Add a pointer to the USB part of the PHY to the driver data and use that
to power on the PHY also if the DP part of the PHY is initialised first.

Fixes: 52e013d0bf ("phy: qcom-qmp: Add support for DP in USB3+DP combo phy")
Cc: stable@vger.kernel.org	# 5.10
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20221114081346.5116-5-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-12 12:01:56 +01:00
..
allwinner phy: sun4i-usb: Add support for the H616 USB PHY 2023-01-04 11:28:56 +01:00
amlogic
broadcom phy: usb: Fix clock imbalance for suspend/resume 2022-12-31 13:32:48 +01:00
cadence
freescale
hisilicon
ingenic
intel
lantiq
marvell phy: marvell: phy-mvebu-a3700-comphy: Reset COMPHY registers before USB 3.0 power on 2022-12-31 13:32:46 +01:00
mediatek
microchip
motorola
mscc
qualcomm phy: qcom-qmp-combo: fix broken power on 2023-01-12 12:01:56 +01:00
ralink phy: ralink: mt7621-pci: add sentinel to quirks table 2022-11-05 13:01:25 +05:30
renesas
rockchip
samsung
socionext
st phy: stm32: fix an error code in probe 2022-10-17 10:55:26 +05:30
sunplus phy: sunplus: Fix an IS_ERR() vs NULL bug in sp_usb_phy_probe 2022-11-05 00:29:57 +05:30
tegra phy: tegra: xusb: Fix crash during pad power on/down 2022-10-17 11:07:37 +05:30
ti
xilinx
Kconfig
Makefile
phy-can-transceiver.c
phy-core-mipi-dphy.c
phy-core.c
phy-lgm-usb.c
phy-lpc18xx-usb-otg.c
phy-pistachio-usb.c
phy-xgene.c