phy: qcom-qmp-combo: fix sc8280xp PCS_USB offset
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 19 Sep 2022 09:57:00 +0000 (11:57 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 20 Sep 2022 06:14:10 +0000 (11:44 +0530)
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")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220919095700.2228-1-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-combo.c

index b5dde7f06ea963683e3ea9cd85b8b226dcc4d75d..41f938126ff11fd802e3bbf5225986be82cbb94a 100644 (file)
@@ -1243,6 +1243,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,