Skip to content

Commit 2d3465a

Browse files
athierry1vinodkoul
authored andcommitted
phy: qcom-qmp-usb: 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") Signed-off-by: Adrien Thierry <athierry@redhat.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20230828152353.16529-2-athierry@redhat.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 3b384cc commit 2d3465a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,7 @@ static int qmp_usb_power_on(struct phy *phy)
17031703
void __iomem *tx = qmp->tx;
17041704
void __iomem *rx = qmp->rx;
17051705
void __iomem *pcs = qmp->pcs;
1706+
void __iomem *pcs_usb = qmp->pcs_usb;
17061707
void __iomem *status;
17071708
unsigned int val;
17081709
int ret;
@@ -1726,6 +1727,9 @@ static int qmp_usb_power_on(struct phy *phy)
17261727

17271728
qmp_usb_configure(pcs, cfg->pcs_tbl, cfg->pcs_tbl_num);
17281729

1730+
if (pcs_usb)
1731+
qmp_usb_configure(pcs_usb, cfg->pcs_usb_tbl, cfg->pcs_usb_tbl_num);
1732+
17291733
if (cfg->has_pwrdn_delay)
17301734
usleep_range(10, 20);
17311735

0 commit comments

Comments
 (0)