]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: qcom: dispcc-sm8750: Allow dumping regmap
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 12 Feb 2025 16:32:43 +0000 (17:32 +0100)
committerBjorn Andersson <andersson@kernel.org>
Fri, 14 Feb 2025 16:58:37 +0000 (10:58 -0600)
Reading few registers at the end of the block (e.g. 0x10000, 0x10004)
results in synchronous external abort, so limit the regmap to the last
readable register which allows dumping the regs for debugging.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250212163243.237658-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/dispcc-sm8750.c

index 0358dff91da5d7f7bc662231a2ed748bbb7f1194..a532d9ad9dd369121123486ff026715b948f351e 100644 (file)
@@ -1883,7 +1883,7 @@ static const struct regmap_config disp_cc_sm8750_regmap_config = {
        .reg_bits = 32,
        .reg_stride = 4,
        .val_bits = 32,
-       .max_register = 0x11014,
+       .max_register = 0xf004, /* 0x10000, 0x10004 and maybe others are for TZ */
        .fast_io = true,
 };