Skip to contentSkip to conversation

clk: qcom: Drop mmcx gdsc supply for dispcc and videocc

PATCH Applied Abel Vesa 3 participants 4 messages Jul 13, 2022 – Jul 19, 2022

Subsystems (3)
lore
Share & tools
lore

Abel Vesa

author
#0 lore raw

PATCH 1/1 clk: qcom: Drop mmcx gdsc supply for dispcc and videocc

Both dispcc and videocc use mmcx power domain now. Lets drop the supply mmcx from every gdsc.

Cc Dmitry Baryshkov <[email protected]>
Fixes 266e5cf39a0f ("arm64: dts: qcom: sm8250: remove mmcx regulator")
---
 drivers/clk/qcom/dispcc-sm8250.c  | 1 -
 drivers/clk/qcom/videocc-sm8250.c | 4 ----
 2 files changed, 5 deletions(-)
drivers/clk/qcom/dispcc-sm8250.c +0 -1
index 39b344ebb049..709076f0f9d7 100644
@@ -1138,7 +1138,6 @@ static struct gdsc mdss_gdsc = {
 	},
 	.pwrsts = PWRSTS_OFF_ON,
 	.flags = HW_CTRL,
-	.supply = "mmcx",
 };
 
 static struct clk_regmap *disp_cc_sm8250_clocks[] = {
drivers/clk/qcom/videocc-sm8250.c +0 -4
index 8617454e4a77..f28f2cb051d7 100644
@@ -277,7 +277,6 @@ static struct gdsc mvs0c_gdsc = {
 	},
 	.flags = 0,
 	.pwrsts = PWRSTS_OFF_ON,
-	.supply = "mmcx",
 };
 
 static struct gdsc mvs1c_gdsc = {
@@ -287,7 +286,6 @@ static struct gdsc mvs1c_gdsc = {
 	},
 	.flags = 0,
 	.pwrsts = PWRSTS_OFF_ON,
-	.supply = "mmcx",
 };
 
 static struct gdsc mvs0_gdsc = {
@@ -297,7 +295,6 @@ static struct gdsc mvs0_gdsc = {
 	},
 	.flags = HW_CTRL,
 	.pwrsts = PWRSTS_OFF_ON,
-	.supply = "mmcx",
 };
 
 static struct gdsc mvs1_gdsc = {
@@ -307,7 +304,6 @@ static struct gdsc mvs1_gdsc = {
 	},
 	.flags = HW_CTRL,
 	.pwrsts = PWRSTS_OFF_ON,
-	.supply = "mmcx",
 };
 
 static struct clk_regmap *video_cc_sm8250_clocks[] = {
Signature · 1 line
2.34.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Abel Vesa

Both dispcc and videocc use mmcx power domain now. Lets drop the supply mmcx from every gdsc.

Cc Dmitry Baryshkov <[email protected]>
Fixes 266e5cf39a0f ("arm64: dts: qcom: sm8250: remove mmcx regulator")

This would break backwards compatibility with dtbs that used mmcx-supply. We only ever used mmcx-supply in sm8250.dtsi upstream and given that we only boot sm8250 off Android boot images it's unlikely that anyone would use a new kernel with that old of a dtb...

So:

Dmitry, what do you think?

Regards,
Bjorn

Quoted 56 lines
---
 drivers/clk/qcom/dispcc-sm8250.c  | 1 -
 drivers/clk/qcom/videocc-sm8250.c | 4 ----
 2 files changed, 5 deletions(-)
drivers/clk/qcom/dispcc-sm8250.c +0 -1
index 39b344ebb049..709076f0f9d7 100644
@@ -1138,7 +1138,6 @@ static struct gdsc mdss_gdsc = {
 	},
 	.pwrsts = PWRSTS_OFF_ON,
 	.flags = HW_CTRL,
-	.supply = "mmcx",
 };
 
 static struct clk_regmap *disp_cc_sm8250_clocks[] = {
drivers/clk/qcom/videocc-sm8250.c +0 -4
index 8617454e4a77..f28f2cb051d7 100644
@@ -277,7 +277,6 @@ static struct gdsc mvs0c_gdsc = {
 	},
 	.flags = 0,
 	.pwrsts = PWRSTS_OFF_ON,
-	.supply = "mmcx",
 };
 
 static struct gdsc mvs1c_gdsc = {
@@ -287,7 +286,6 @@ static struct gdsc mvs1c_gdsc = {
 	},
 	.flags = 0,
 	.pwrsts = PWRSTS_OFF_ON,
-	.supply = "mmcx",
 };
 
 static struct gdsc mvs0_gdsc = {
@@ -297,7 +295,6 @@ static struct gdsc mvs0_gdsc = {
 	},
 	.flags = HW_CTRL,
 	.pwrsts = PWRSTS_OFF_ON,
-	.supply = "mmcx",
 };
 
 static struct gdsc mvs1_gdsc = {
@@ -307,7 +304,6 @@ static struct gdsc mvs1_gdsc = {
 	},
 	.flags = HW_CTRL,
 	.pwrsts = PWRSTS_OFF_ON,
-	.supply = "mmcx",
 };
 
 static struct clk_regmap *video_cc_sm8250_clocks[] = {
Signature · 1 line
2.34.3
Reviewed-by
#2 lore raw
Quoted 15 lines · Bjorn Andersson
Quoted 6 lines · Abel Vesa

Both dispcc and videocc use mmcx power domain now. Lets drop the supply mmcx from every gdsc.

Cc Dmitry Baryshkov <[email protected]>
Fixes 266e5cf39a0f ("arm64: dts: qcom: sm8250: remove mmcx regulator")

This would break backwards compatibility with dtbs that used mmcx-supply. We only ever used mmcx-supply in sm8250.dtsi upstream and given that we only boot sm8250 off Android boot images it's unlikely that anyone would use a new kernel with that old of a dtb...

Quoted 4 lines

So:

Dmitry, what do you think?

I think it's fine.

Quoted 60 lines

Regards,
Bjorn

Quoted 56 lines
---
 drivers/clk/qcom/dispcc-sm8250.c  | 1 -
 drivers/clk/qcom/videocc-sm8250.c | 4 ----
 2 files changed, 5 deletions(-)
drivers/clk/qcom/dispcc-sm8250.c +0 -1
index 39b344ebb049..709076f0f9d7 100644
@@ -1138,7 +1138,6 @@ static struct gdsc mdss_gdsc = {
      },
      .pwrsts = PWRSTS_OFF_ON,
      .flags = HW_CTRL,
-     .supply = "mmcx",
 };
 
 static struct clk_regmap *disp_cc_sm8250_clocks[] = {
drivers/clk/qcom/videocc-sm8250.c +0 -5
index 8617454e4a77..f28f2cb051d7 100644
@@ -277,7 +277,6 @@ static struct gdsc mvs0c_gdsc = {
      },
      .flags = 0,
      .pwrsts = PWRSTS_OFF_ON,
-     .supply = "mmcx",
 };
 
 static struct gdsc mvs1c_gdsc = {
@@ -287,7 +286,6 @@ static struct gdsc mvs1c_gdsc = {
      },
      .flags = 0,
      .pwrsts = PWRSTS_OFF_ON,
-     .supply = "mmcx",
 };
 
 static struct gdsc mvs0_gdsc = {
@@ -297,7 +295,6 @@ static struct gdsc mvs0_gdsc = {
      },
      .flags = HW_CTRL,
      .pwrsts = PWRSTS_OFF_ON,
-     .supply = "mmcx",
 };
 
 static struct gdsc mvs1_gdsc = {
@@ -307,7 +304,6 @@ static struct gdsc mvs1_gdsc = {
      },
      .flags = HW_CTRL,
      .pwrsts = PWRSTS_OFF_ON,
-     .supply = "mmcx",
 };
 
 static struct clk_regmap *video_cc_sm8250_clocks[] = {
--

2.34.3

Signature · 2 lines
With best wishes
Dmitry
#3 lore raw

Re: (subset) [PATCH] clk: qcom: Drop mmcx gdsc supply for dispcc and videocc

In reply to Abel Vesa
Quoted 4 lines · Abel Vesa

Both dispcc and videocc use mmcx power domain now. Lets drop the supply mmcx from every gdsc.

Applied, thanks!

[1/1] clk: qcom: Drop mmcx gdsc supply for dispcc and videocc

      commit: b1ec8b53c9ae5fae33d60e9638d39ca5346b941b

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>