Skip to content

Commit 76d2029

Browse files
konradybciovinodkoul
authored andcommitted
phy: qcom-qmp-combo: initialize PCS_USB registers
Currently, PCS_USB registers that have their initialization data in a pcs_usb_tbl table are never initialized. Fix that. Fixes: fc64623 ("phy: qcom-qmp-combo,usb: add support for separate PCS_USB region") Reported-by: Adrien Thierry <athierry@redhat.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20230829-topic-8550_usbphy-v3-2-34ec434194c5@linaro.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 112c237 commit 76d2029

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/phy/qualcomm/phy-qcom-qmp-combo.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,6 +2555,7 @@ static int qmp_combo_usb_power_on(struct phy *phy)
25552555
void __iomem *tx2 = qmp->tx2;
25562556
void __iomem *rx2 = qmp->rx2;
25572557
void __iomem *pcs = qmp->pcs;
2558+
void __iomem *pcs_usb = qmp->pcs_usb;
25582559
void __iomem *status;
25592560
unsigned int val;
25602561
int ret;
@@ -2576,6 +2577,9 @@ static int qmp_combo_usb_power_on(struct phy *phy)
25762577

25772578
qmp_combo_configure(pcs, cfg->pcs_tbl, cfg->pcs_tbl_num);
25782579

2580+
if (pcs_usb)
2581+
qmp_combo_configure(pcs_usb, cfg->pcs_usb_tbl, cfg->pcs_usb_tbl_num);
2582+
25792583
if (cfg->has_pwrdn_delay)
25802584
usleep_range(10, 20);
25812585

0 commit comments

Comments
 (0)