Skip to contentSkip to conversation

clk: qcom: msm8960: Fix ce3_src register offset

PATCH In review Stephen Boyd 2 participants 2 messages Mar 2, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: qcom: msm8960: Fix ce3_src register offset

The offset seems to have been copied from the sata clk. Fix it so that enabling the crypto engine source clk works.

Cc Srinivas Kandagatla <[email protected]>
Fixes 5f775498bdc4 ("clk: qcom: Fully support apq8064 global clock control")
---
 drivers/clk/qcom/gcc-msm8960.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/qcom/gcc-msm8960.c +1 -1
index 63ecd97f3793..0a0c1f533249 100644
@@ -2753,7 +2753,7 @@ static struct clk_rcg ce3_src = {
 	},
 	.freq_tbl = clk_tbl_ce3,
 	.clkr = {
-		.enable_reg = 0x2c08,
+		.enable_reg = 0x36c0,
 		.enable_mask = BIT(7),
 		.hw.init = &(struct clk_init_data){
 			.name = "ce3_src",
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Tested-by on v1 1/1
#1 lore raw
Quoted 8 lines · Stephen Boyd

The offset seems to have been copied from the sata clk. Fix it so that enabling the crypto engine source clk works.

Cc Srinivas Kandagatla <[email protected]>
Fixes 5f775498bdc4 ("clk: qcom: Fully support apq8064 global clock control")

---

Good find :-)

Quoted 17 lines
  drivers/clk/qcom/gcc-msm8960.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/qcom/gcc-msm8960.c +1 -1
index 63ecd97f3793..0a0c1f533249 100644
@@ -2753,7 +2753,7 @@ static struct clk_rcg ce3_src = {
  	},
  	.freq_tbl = clk_tbl_ce3,
  	.clkr = {
-		.enable_reg = 0x2c08,
+		.enable_reg = 0x36c0,
  		.enable_mask = BIT(7),
  		.hw.init = &(struct clk_init_data){
  			.name = "ce3_src",