Skip to content

Commit 4be39d5

Browse files
konradybcioGeorgi Djakov
authored andcommitted
interconnect: qcom: msm8996: Fix regmap max_register values
The device tree reg starts at BUS_BASE + QoS_OFFSET, but the regmap configs in the ICC driver had values suggesting the reg started at BUS_BASE. Shrink them down (where they haven't been already, so for providers where QoS_OFFSET = 0) to make sure they stay within their window. Fixes: 7add937 ("interconnect: qcom: Add MSM8996 interconnect provider driver") Signed-off-by: Konrad Dybcio <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Tested-by: Dmitry Baryshkov <[email protected]> #db820c Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent 60426ff commit 4be39d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/interconnect/qcom/msm8996.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,7 +1813,7 @@ static const struct regmap_config msm8996_a0noc_regmap_config = {
18131813
.reg_bits = 32,
18141814
.reg_stride = 4,
18151815
.val_bits = 32,
1816-
.max_register = 0x9000,
1816+
.max_register = 0x6000,
18171817
.fast_io = true
18181818
};
18191819

@@ -1837,7 +1837,7 @@ static const struct regmap_config msm8996_a1noc_regmap_config = {
18371837
.reg_bits = 32,
18381838
.reg_stride = 4,
18391839
.val_bits = 32,
1840-
.max_register = 0x7000,
1840+
.max_register = 0x5000,
18411841
.fast_io = true
18421842
};
18431843

@@ -1858,7 +1858,7 @@ static const struct regmap_config msm8996_a2noc_regmap_config = {
18581858
.reg_bits = 32,
18591859
.reg_stride = 4,
18601860
.val_bits = 32,
1861-
.max_register = 0xa000,
1861+
.max_register = 0x7000,
18621862
.fast_io = true
18631863
};
18641864

@@ -1886,7 +1886,7 @@ static const struct regmap_config msm8996_bimc_regmap_config = {
18861886
.reg_bits = 32,
18871887
.reg_stride = 4,
18881888
.val_bits = 32,
1889-
.max_register = 0x62000,
1889+
.max_register = 0x5a000,
18901890
.fast_io = true
18911891
};
18921892

@@ -1997,7 +1997,7 @@ static const struct regmap_config msm8996_mnoc_regmap_config = {
19971997
.reg_bits = 32,
19981998
.reg_stride = 4,
19991999
.val_bits = 32,
2000-
.max_register = 0x20000,
2000+
.max_register = 0x1c000,
20012001
.fast_io = true
20022002
};
20032003

0 commit comments

Comments
 (0)