The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [RFT PATCH] clk: qcom: dispcc-glymur: Fix (possibly) dumping regmap
@ 2026-05-05 15:37 Krzysztof Kozlowski
  2026-05-08 11:10 ` Konrad Dybcio
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-05 15:37 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney,
	linux-arm-msm, linux-clk, linux-kernel
  Cc: Krzysztof Kozlowski

Reading few registers at the end of the block (e.g. 0x10000) might
result 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@oss.qualcomm.com>

---

Register map is the same as for x1e80100 and sm8750, so I am guessing
same problem.
---
 drivers/clk/qcom/dispcc-glymur.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/qcom/dispcc-glymur.c b/drivers/clk/qcom/dispcc-glymur.c
index c4bb328d432f..412b92e227d6 100644
--- a/drivers/clk/qcom/dispcc-glymur.c
+++ b/drivers/clk/qcom/dispcc-glymur.c
@@ -1930,7 +1930,7 @@ static const struct regmap_config disp_cc_glymur_regmap_config = {
 	.reg_bits = 32,
 	.reg_stride = 4,
 	.val_bits = 32,
-	.max_register = 0x11014,
+	.max_register = 0xf004, /* 0x10000 and maybe others are for TZ */
 	.fast_io = true,
 };
 
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-08 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-05 15:37 [RFT PATCH] clk: qcom: dispcc-glymur: Fix (possibly) dumping regmap Krzysztof Kozlowski
2026-05-08 11:10 ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox