mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset
@ 2026-09-16 11:45 Abel Vesa
  2026-09-17  8:01 ` Konrad Dybcio
  2026-09-25 16:43 ` Bjorn Andersson
  0 siblings, 2 replies; 3+ messages in thread
From: Abel Vesa @ 2026-09-16 11:45 UTC (permalink / raw)
  To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney, Jerome Brunet
  Cc: linux-arm-msm, linux-clk, linux-kernel, Abel Vesa

The FD AHB clock branch register is at offset 0x3b74, not 0x3ba74.
The incorrect offset exceeds the regmap maximum of 0xb008, so regmap
rejects accesses to it and the clock cannot be enabled.

Correct both the enable and halt register offsets so the driver can
enable the branch and check its status.

Assisted-by: LLM
Fixes: c252659770db ("clk: qcom: Add MSM8996 Multimedia Clock Controller (MMCC) driver")
Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
---
 drivers/clk/qcom/mmcc-msm8996.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/qcom/mmcc-msm8996.c b/drivers/clk/qcom/mmcc-msm8996.c
index 3426e3dde924..ef7bde361fc3 100644
--- a/drivers/clk/qcom/mmcc-msm8996.c
+++ b/drivers/clk/qcom/mmcc-msm8996.c
@@ -3133,9 +3133,9 @@ static struct clk_branch fd_core_uar_clk = {
 };
 
 static struct clk_branch fd_ahb_clk = {
-	.halt_reg = 0x3ba74,
+	.halt_reg = 0x3b74,
 	.clkr = {
-		.enable_reg = 0x3ba74,
+		.enable_reg = 0x3b74,
 		.enable_mask = BIT(0),
 		.hw.init = &(struct clk_init_data){
 			.name = "fd_ahb_clk",

---
base-commit: e6e35979777d646fe3c7c94dca7dd32fb25d45f4
change-id: 20260916-clk-qcom-mmcc-msm8996-fix-fd-ahb-offset-c7bbc8d29f6a

Best regards,
--  
Abel Vesa <abel.vesa@oss.qualcomm.com>


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

* Re: [PATCH] clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset
  2026-09-16 11:45 [PATCH] clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset Abel Vesa
@ 2026-09-17  8:01 ` Konrad Dybcio
  2026-09-25 16:43 ` Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2026-09-17  8:01 UTC (permalink / raw)
  To: Abel Vesa, Bjorn Andersson, Abel Vesa, Stephen Boyd,
	Brian Masney, Jerome Brunet
  Cc: linux-arm-msm, linux-clk, linux-kernel

On 9/16/26 1:45 PM, Abel Vesa wrote:
> The FD AHB clock branch register is at offset 0x3b74, not 0x3ba74.
> The incorrect offset exceeds the regmap maximum of 0xb008, so regmap
> rejects accesses to it and the clock cannot be enabled.
> 
> Correct both the enable and halt register offsets so the driver can
> enable the branch and check its status.
> 
> Assisted-by: LLM
> Fixes: c252659770db ("clk: qcom: Add MSM8996 Multimedia Clock Controller (MMCC) driver")
> Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

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

* Re: [PATCH] clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset
  2026-09-16 11:45 [PATCH] clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset Abel Vesa
  2026-09-17  8:01 ` Konrad Dybcio
@ 2026-09-25 16:43 ` Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2026-09-25 16:43 UTC (permalink / raw)
  To: Abel Vesa, Stephen Boyd, Brian Masney, Jerome Brunet, Abel Vesa
  Cc: linux-arm-msm, linux-clk, linux-kernel


On Wed, 16 Sep 2026 14:45:53 +0300, Abel Vesa wrote:
> The FD AHB clock branch register is at offset 0x3b74, not 0x3ba74.
> The incorrect offset exceeds the regmap maximum of 0xb008, so regmap
> rejects accesses to it and the clock cannot be enabled.
> 
> Correct both the enable and halt register offsets so the driver can
> enable the branch and check its status.
> 
> [...]

Applied, thanks!

[1/1] clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset
      commit: 3c8abc5a814a0349912d59a91ed7c459475758ce

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

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

end of thread, other threads:[~2026-09-25 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-16 11:45 [PATCH] clk: qcom: mmcc-msm8996: Fix FD AHB clock register offset Abel Vesa
2026-09-17  8:01 ` Konrad Dybcio
2026-09-25 16:43 ` Bjorn Andersson

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

all inboxes | Powered by JetHome®