phy: qcom-qmp-pcie: sc8180x PCIe PHY has 2 lanes
Subsystems (3)
PATCH RESEND v2 1/2 phy: qcom-qmp-pcie: sc8180x PCIe PHY has 2 lanes
All PCIe PHYs on sc8180x platform have 2 lanes, so change the number of lanes to 2.
Fixes f839f14e24f2 ("phy: qcom-qmp: Add sc8180x PCIe support")
Cc [email protected] # 5.15
Sgned-off-by Dmitry Baryshkov <[email protected]>
--- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +1 -1
@@ -2331,7 +2331,7 @@ static const struct qmp_phy_cfg msm8998_pciephy_cfg = { };static const struct qmp_phy_cfg sc8180x_pciephy_cfg = { - .lanes =1 , + .lanes =2 , .tbls = { .serdes = sc8180x_qmp_pcie_serdes_tbl,
Signature · 7 lines
2.30.2 -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
PATCH RESEND v2 2/2 phy: qcom-qmp-pcie: drop sdm845_qhp_pcie_rx_tbl
The SDM845 QHP PHY doesn't have designated RX region. Corresponding RX table is empty, so we can drop it completely.
Signed-off-by Dmitry Baryshkov <[email protected]>
--- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +0 -5
@@ -725,9 +725,6 @@ static const struct qmp_phy_init_tbl sdm845_qhp_pcie_tx_tbl[] = { QMP_PHY_INIT_CFG(PCIE_GEN3_QHP_L0_RSM_START, 0x01), }; -static const struct qmp_phy_init_tbl sdm845_qhp_pcie_rx_tbl[] = { -}; -static const struct qmp_phy_init_tbl sdm845_qhp_pcie_pcs_tbl[] = {QMP_PHY_INIT_CFG (PCIE_GEN3_QHP_PHY_POWER_STATE_CONFIG ,0x3f ),QMP_PHY_INIT_CFG (PCIE_GEN3_QHP_PHY_PCS_TX_RX_CONFIG ,0x50 ),
@@ -2212,8 +2209,6 @@ static const struct qmp_phy_cfg sdm845_qhp_pciephy_cfg = { .serdes_num = ARRAY_SIZE(sdm845_qhp_pcie_serdes_tbl), .tx = sdm845_qhp_pcie_tx_tbl, .tx_num = ARRAY_SIZE(sdm845_qhp_pcie_tx_tbl), - .rx = sdm845_qhp_pcie_rx_tbl, - .rx_num = ARRAY_SIZE(sdm845_qhp_pcie_rx_tbl), .pcs = sdm845_qhp_pcie_pcs_tbl, .pcs_num = ARRAY_SIZE(sdm845_qhp_pcie_pcs_tbl), },
Signature · 7 lines
2.30.2 -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
Re: [PATCH RESEND v2 2/2] phy: qcom-qmp-pcie: drop sdm845_qhp_pcie_rx_tbl
Quoted 5 lines · Dmitry Baryshkov
The SDM845 QHP PHY doesn't have designated RX region. Corresponding RX table is empty, so we can drop it completely.
Signed-off-by Dmitry Baryshkov <[email protected]>---
Reviewed-by Konrad Dybcio <[email protected]>
Konrad
Quoted 26 lines
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 5 ----- 1 file changed, 5 deletions(-)drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +0
-5@@ -725,9 +725,6 @@ static const struct qmp_phy_init_tbl sdm845_qhp_pcie_tx_tbl[] = { QMP_PHY_INIT_CFG(PCIE_GEN3_QHP_L0_RSM_START, 0x01), }; -static const struct qmp_phy_init_tbl sdm845_qhp_pcie_rx_tbl[] = { -}; -static const struct qmp_phy_init_tbl sdm845_qhp_pcie_pcs_tbl[] = {QMP_PHY_INIT_CFG (PCIE_GEN3_QHP_PHY_POWER_STATE_CONFIG ,0x3f ),QMP_PHY_INIT_CFG (PCIE_GEN3_QHP_PHY_PCS_TX_RX_CONFIG ,0x50 ),@@ -2212,8 +2209,6 @@ static const struct qmp_phy_cfg sdm845_qhp_pciephy_cfg = { .serdes_num = ARRAY_SIZE(sdm845_qhp_pcie_serdes_tbl), .tx = sdm845_qhp_pcie_tx_tbl, .tx_num = ARRAY_SIZE(sdm845_qhp_pcie_tx_tbl), - .rx = sdm845_qhp_pcie_rx_tbl, - .rx_num = ARRAY_SIZE(sdm845_qhp_pcie_rx_tbl), .pcs = sdm845_qhp_pcie_pcs_tbl, .pcs_num = ARRAY_SIZE(sdm845_qhp_pcie_pcs_tbl), },
Quoted 2 lines · Dmitry Baryshkov
All PCIe PHYs on sc8180x platform have 2 lanes, so change the number of lanes to 2.
Applied both, thanks
Signature · 1 line
~Vinod