Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: qcom-qmp-combo: use qmp_combo_offsets_v3 instead of _v6

The qmp_combo_offsets_v3 table is already used for v3 and v4 PHYs. Reuse
it for v6 too, dropping the separate qmp_combo_offsets_v6.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20230323144726.1614344-2-dmitry.baryshkov@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Dmitry Baryshkov and committed by
Vinod Koul
eb016875 4546334f

+1 -17
+1 -17
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
··· 1417 1417 .dp_dp_phy = 0x2200, 1418 1418 }; 1419 1419 1420 - static const struct qmp_combo_offsets qmp_combo_offsets_v6 = { 1421 - .com = 0x0000, 1422 - .txa = 0x1200, 1423 - .rxa = 0x1400, 1424 - .txb = 0x1600, 1425 - .rxb = 0x1800, 1426 - .usb3_serdes = 0x1000, 1427 - .usb3_pcs_misc = 0x1a00, 1428 - .usb3_pcs = 0x1c00, 1429 - .usb3_pcs_usb = 0x1f00, 1430 - .dp_serdes = 0x2000, 1431 - .dp_txa = 0x2200, 1432 - .dp_txb = 0x2600, 1433 - .dp_dp_phy = 0x2a00, 1434 - }; 1435 - 1436 1420 static const struct qmp_phy_cfg sc7180_usb3dpphy_cfg = { 1437 1421 .serdes_tbl = qmp_v3_usb3_serdes_tbl, 1438 1422 .serdes_tbl_num = ARRAY_SIZE(qmp_v3_usb3_serdes_tbl), ··· 1743 1759 }; 1744 1760 1745 1761 static const struct qmp_phy_cfg sm8550_usb3dpphy_cfg = { 1746 - .offsets = &qmp_combo_offsets_v6, 1762 + .offsets = &qmp_combo_offsets_v3, 1747 1763 1748 1764 .serdes_tbl = sm8550_usb3_serdes_tbl, 1749 1765 .serdes_tbl_num = ARRAY_SIZE(sm8550_usb3_serdes_tbl),