Skip to content

Commit 86f7037

Browse files
lumagvinodkoul
authored andcommitted
phy: qcom-qmp-pcie: keep offset tables sorted
In order to simplify adding new PHY configurations, keep register offset structs sorted by the version. Fixes: a05b6d5 ("phy: qcom-qmp-pcie: add support for sa8775p") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20230820142035.89903-5-dmitry.baryshkov@linaro.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent cfe0d20 commit 86f7037

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,17 +2323,6 @@ static const struct qmp_pcie_offsets qmp_pcie_offsets_v5 = {
23232323
.rx2 = 0x1800,
23242324
};
23252325

2326-
static const struct qmp_pcie_offsets qmp_pcie_offsets_v6_20 = {
2327-
.serdes = 0x1000,
2328-
.pcs = 0x1200,
2329-
.pcs_misc = 0x1400,
2330-
.tx = 0x0000,
2331-
.rx = 0x0200,
2332-
.tx2 = 0x0800,
2333-
.rx2 = 0x0a00,
2334-
.ln_shrd = 0x0e00,
2335-
};
2336-
23372326
static const struct qmp_pcie_offsets qmp_pcie_offsets_v5_20 = {
23382327
.serdes = 0x1000,
23392328
.pcs = 0x1200,
@@ -2354,6 +2343,17 @@ static const struct qmp_pcie_offsets qmp_pcie_offsets_v5_30 = {
23542343
.rx2 = 0x3a00,
23552344
};
23562345

2346+
static const struct qmp_pcie_offsets qmp_pcie_offsets_v6_20 = {
2347+
.serdes = 0x1000,
2348+
.pcs = 0x1200,
2349+
.pcs_misc = 0x1400,
2350+
.tx = 0x0000,
2351+
.rx = 0x0200,
2352+
.tx2 = 0x0800,
2353+
.rx2 = 0x0a00,
2354+
.ln_shrd = 0x0e00,
2355+
};
2356+
23572357
static const struct qmp_phy_cfg ipq8074_pciephy_cfg = {
23582358
.lanes = 1,
23592359

0 commit comments

Comments
 (0)