phy: qcom-qmp: another fix for the sc8180x PCIe definition
Subsystems (2)
PATCH 1/1 phy: qcom-qmp: another fix for the sc8180x PCIe definition
Commit f839f14e24f2 ("phy: qcom-qmp: Add sc8180x PCIe support") added SC8180X PCIe tables, but used sm8250_qmp_pcie_serdes_tbl as a serdes table because of the copy paste error. Commit bfccd9a71a08 ("phy:
qcom-qmp: Fix sc8180x PCIe definition") corrected part of this mistake by pointing serdes_tbl to sc8180x_qmp_pcie_serdes_tbl, however the serdes_tbl_num field was not updated to use sc8180x table. So let's now fix the serdes_tbl_num field too.
--- drivers/phy/qualcomm/phy-qcom-qmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/qualcomm/phy-qcom-qmp.c +1 -1
@@ -3632,7 +3632,7 @@ static const struct qmp_phy_cfg sc8180x_pciephy_cfg = { .nlanes = 1, .serdes_tbl = sc8180x_qmp_pcie_serdes_tbl, - .serdes_tbl_num = ARRAY_SIZE(sm8250_qmp_pcie_serdes_tbl), + .serdes_tbl_num = ARRAY_SIZE(sc8180x_qmp_pcie_serdes_tbl), .tx_tbl = sc8180x_qmp_pcie_tx_tbl, .tx_tbl_num = ARRAY_SIZE(sc8180x_qmp_pcie_tx_tbl), .rx_tbl = sc8180x_qmp_pcie_rx_tbl,
Signature · 1 line
2.33.0
Quoted 10 lines · Dmitry Baryshkov
Commit
f839f14e24f2("phy: qcom-qmp: Add sc8180x PCIe support") added SC8180X PCIe tables, but usedsm8250_qmp_pcie_serdes_tblas a serdes table because of the copy paste error. Commitbfccd9a71a08("phy:
qcom-qmp: Fix sc8180x PCIe definition") corrected part of this mistake by pointingserdes_tbltosc8180x_qmp_pcie_serdes_tbl, however theserdes_tbl_numfield was not updated to use sc8180x table. So let's now fix theserdes_tbl_numfield too.Fixes bfccd9a71a08 ("phy: qcom-qmp: Fix sc8180x PCIe definition")Signed-off-by Dmitry Baryshkov <[email protected]>
Damn it...my eyes doesn't like these solid chunks of text. Thanks Dmitry.
Regards,
Bjorn
Quoted 20 lines
--- drivers/phy/qualcomm/phy-qcom-qmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/phy/qualcomm/phy-qcom-qmp.c +1
-1@@ -3632,7 +3632,7 @@ static const struct qmp_phy_cfg sc8180x_pciephy_cfg = { .nlanes = 1, .serdes_tbl = sc8180x_qmp_pcie_serdes_tbl, - .serdes_tbl_num = ARRAY_SIZE(sm8250_qmp_pcie_serdes_tbl), + .serdes_tbl_num = ARRAY_SIZE(sc8180x_qmp_pcie_serdes_tbl), .tx_tbl = sc8180x_qmp_pcie_tx_tbl, .tx_tbl_num = ARRAY_SIZE(sc8180x_qmp_pcie_tx_tbl), .rx_tbl = sc8180x_qmp_pcie_rx_tbl,Signature · 1 line
2.33.0
Quoted 7 lines · Dmitry Baryshkov
Commit
f839f14e24f2("phy: qcom-qmp: Add sc8180x PCIe support") added SC8180X PCIe tables, but usedsm8250_qmp_pcie_serdes_tblas a serdes table because of the copy paste error. Commitbfccd9a71a08("phy:
qcom-qmp: Fix sc8180x PCIe definition") corrected part of this mistake by pointingserdes_tbltosc8180x_qmp_pcie_serdes_tbl, however theserdes_tbl_numfield was not updated to use sc8180x table. So let's now fix theserdes_tbl_numfield too.
Applied, thanks
Signature · 1 line
~Vinod