projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b98e44e
)
phy: qcom-qmp-ufs: clean up PHY init
author
Johan Hovold
<johan+linaro@kernel.org>
Mon, 24 Oct 2022 09:00:37 +0000
(11:00 +0200)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 28 Oct 2022 13:00:30 +0000
(18:30 +0530)
Clean up the PHY initialisation somewhat programming both tx and rx for
the second lane after the first lane.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link:
https://lore.kernel.org/r/20221024090041.19574-7-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c
b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c
index 90583b87efd1ce55f18d8e46ef4e25f6f250e908..fa703e856eb78763d019a57c90990cb50e1e4c83 100644
(file)
--- a/
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c
+++ b/
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c
@@
-859,14
+859,12
@@
static int qmp_ufs_power_on(struct phy *phy)
/* Tx, Rx, and PCS configurations */
qmp_ufs_configure_lane(tx, cfg->tx_tbl, cfg->tx_tbl_num, 1);
-
- if (cfg->lanes >= 2)
- qmp_ufs_configure_lane(qmp->tx2, cfg->tx_tbl, cfg->tx_tbl_num, 2);
-
qmp_ufs_configure_lane(rx, cfg->rx_tbl, cfg->rx_tbl_num, 1);
- if (cfg->lanes >= 2)
+ if (cfg->lanes >= 2) {
+ qmp_ufs_configure_lane(qmp->tx2, cfg->tx_tbl, cfg->tx_tbl_num, 2);
qmp_ufs_configure_lane(qmp->rx2, cfg->rx_tbl, cfg->rx_tbl_num, 2);
+ }
qmp_ufs_configure(pcs, cfg->pcs_tbl, cfg->pcs_tbl_num);