Skip to contentSkip to conversation

phy: qcom-qmp-combo: fix sc8280xp PCS_USB offset

PATCH Applied Johan Hovold 2 participants 2 messages Sep 19, 2022 – Sep 20, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phy: qcom-qmp-combo: fix sc8280xp PCS_USB offset

The PCS_USB register block lives at an offset of 0x300 from the PCS region on SC8280XP so add the missing offset to avoid corrupting unrelated registers on runtime suspend.

Note that this region should probably be described separately in the binding.

Fixes a2e927b0e50d ("phy: qcom-qmp-combo: Add sc8280xp USB/DP combo phys")
---
 drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 1 +
 1 file changed, 1 insertion(+)

The corresponding DT fix is here:

	https://lore.kernel.org/all/[email protected]/

Johan

drivers/phy/qualcomm/phy-qcom-qmp-combo.c +1 -0
index d200cd5ca4fa..ed196d00815b 100644
@@ -1261,6 +1261,7 @@ static const struct qmp_phy_cfg sc8280xp_usb43dp_usb_cfg = {
 	.vreg_list		= qmp_phy_vreg_l,
 	.num_vregs		= ARRAY_SIZE(qmp_phy_vreg_l),
 	.regs			= qmp_v4_usb3phy_regs_layout,
+	.pcs_usb_offset		= 0x300,
 
 	.start_ctrl		= SERDES_START | PCS_START,
 	.pwrdn_ctrl		= SW_PWRDN,
Signature · 1 line
2.35.1
maintainer Applied
#1 lore raw
Quoted 3 lines · Johan Hovold

The PCS_USB register block lives at an offset of 0x300 from the PCS region on SC8280XP so add the missing offset to avoid corrupting unrelated registers on runtime suspend.

Applied, thanks

Signature · 6 lines
~Vinod

-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy