From: Krzysztof Kozlowski Date: Wed, 12 Feb 2025 16:32:43 +0000 (+0100) Subject: clk: qcom: dispcc-sm8750: Allow dumping regmap X-Git-Tag: v6.15-rc1~103^2^4^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d81901a5406eaf65a097b80ab48edc398de598a5;p=thirdparty%2Fkernel%2Fstable.git clk: qcom: dispcc-sm8750: Allow dumping regmap 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 Link: https://lore.kernel.org/r/20250212163243.237658-1-krzysztof.kozlowski@linaro.org Signed-off-by: Bjorn Andersson --- diff --git a/drivers/clk/qcom/dispcc-sm8750.c b/drivers/clk/qcom/dispcc-sm8750.c index 0358dff91da5d..a532d9ad9dd36 100644 --- a/drivers/clk/qcom/dispcc-sm8750.c +++ b/drivers/clk/qcom/dispcc-sm8750.c @@ -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, };