Skip to contentSkip to conversation

clk: Drop unused COMMON_CLK_STM32MP157_SCMI config

PATCH Applied Sudeep Holla 3 participants 5 messages Oct 15, 2021 – Jan 6, 2022 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: Drop unused COMMON_CLK_STM32MP157_SCMI config

Commit 21e743300dd0 ("clk: stm32mp1: new compatible for secure RCC support") introduced a new Kconfig option COMMON_CLK_STM32MP157_SCMI which is not used anywhere.

Further, it looks like this Kconfig option is just to select bunch of other options which doesn't sound correct to me. There is no need for another SCMI firmware based clock driver and hence the same applies for the config option too.

Let us just drop the unused COMMON_CLK_STM32MP157_SCMI before it gives someone idea to write a specific clock driver for this SoC/platform.

Cc Etienne Carriere <[email protected]>
Cc Gabriel Fernandez <[email protected]>
Cc Stephen Boyd <[email protected]>
---
 drivers/clk/Kconfig | 10 ----------
 1 file changed, 10 deletions(-)
drivers/clk/Kconfig +0 -10
index c5b3dc97396a..b64058d1af2d 100644
@@ -339,16 +339,6 @@ config COMMON_CLK_STM32MP157
 	help
 	  Support for stm32mp157 SoC family clocks
 
-config COMMON_CLK_STM32MP157_SCMI
-	bool "stm32mp157 Clock driver with Trusted Firmware"
-	depends on COMMON_CLK_STM32MP157
-	select COMMON_CLK_SCMI
-	select ARM_SCMI_PROTOCOL
-	default y
-	help
-	  Support for stm32mp157 SoC family clocks with Trusted Firmware using
-	  SCMI protocol.
-
 config COMMON_CLK_STM32F
 	def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746)
 	help
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Sudeep Holla

Commit 21e743300dd0 ("clk: stm32mp1: new compatible for secure RCC support") introduced a new Kconfig option COMMON_CLK_STM32MP157_SCMI which is not used anywhere.

Further, it looks like this Kconfig option is just to select bunch of other options which doesn't sound correct to me. There is no need for another SCMI firmware based clock driver and hence the same applies for the config option too.

Quoted 8 lines

Let us just drop the unused COMMON_CLK_STM32MP157_SCMI before it gives someone idea to write a specific clock driver for this SoC/platform.

Cc Etienne Carriere <[email protected]>
Cc Gabriel Fernandez <[email protected]>
Cc Stephen Boyd <[email protected]>

---

LGTM.

Looking at the original commit, and guessing its original aim, is it not better to put some sort of WARN in the STM32MP157 driver when the specific "rcc-secure" compatible is found configured BUT !IS_ENABLED(COMMON_CLK_SCMI) ?

Thanks,
Cristian

Quoted 27 lines
 drivers/clk/Kconfig | 10 ----------
 1 file changed, 10 deletions(-)
drivers/clk/Kconfig +0 -10
index c5b3dc97396a..b64058d1af2d 100644
@@ -339,16 +339,6 @@ config COMMON_CLK_STM32MP157
 	help
 	  Support for stm32mp157 SoC family clocks
 
-config COMMON_CLK_STM32MP157_SCMI
-	bool "stm32mp157 Clock driver with Trusted Firmware"
-	depends on COMMON_CLK_STM32MP157
-	select COMMON_CLK_SCMI
-	select ARM_SCMI_PROTOCOL
-	default y
-	help
-	  Support for stm32mp157 SoC family clocks with Trusted Firmware using
-	  SCMI protocol.
-
 config COMMON_CLK_STM32F
 	def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746)
 	help
Signature · 1 line
2.25.1
#2 lore raw
Quoted 19 lines · Cristian Marussi
Quoted 9 lines · Sudeep Holla

Commit 21e743300dd0 ("clk: stm32mp1: new compatible for secure RCC support") introduced a new Kconfig option COMMON_CLK_STM32MP157_SCMI which is not used anywhere.

Further, it looks like this Kconfig option is just to select bunch of other options which doesn't sound correct to me. There is no need for another SCMI firmware based clock driver and hence the same applies for the config option too.

Quoted 8 lines

Let us just drop the unused COMMON_CLK_STM32MP157_SCMI before it gives someone idea to write a specific clock driver for this SoC/platform.

Cc Etienne Carriere <[email protected]>
Cc Gabriel Fernandez <[email protected]>
Cc Stephen Boyd <[email protected]>

---

Quoted 4 lines

LGTM.

Thanks.

Quoted 5 lines

Looking at the original commit, and guessing its original aim, is it not better to put some sort of WARN in the STM32MP157 driver when the specific "rcc-secure" compatible is found configured BUT !IS_ENABLED(COMMON_CLK_SCMI) ?

IMO, that makes sense. I will leave that to Etienne/Gabriel to decide.

Quoted 30 lines

Thanks,
Cristian

Quoted 27 lines
 drivers/clk/Kconfig | 10 ----------
 1 file changed, 10 deletions(-)
drivers/clk/Kconfig +0 -10
index c5b3dc97396a..b64058d1af2d 100644
@@ -339,16 +339,6 @@ config COMMON_CLK_STM32MP157
 	help
 	  Support for stm32mp157 SoC family clocks
 
-config COMMON_CLK_STM32MP157_SCMI
-	bool "stm32mp157 Clock driver with Trusted Firmware"
-	depends on COMMON_CLK_STM32MP157
-	select COMMON_CLK_SCMI
-	select ARM_SCMI_PROTOCOL
-	default y
-	help
-	  Support for stm32mp157 SoC family clocks with Trusted Firmware using
-	  SCMI protocol.
-
 config COMMON_CLK_STM32F
 	def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746)
 	help
Signature · 1 line
2.25.1
Signature · 2 lines
Regards,
Sudeep
#3 lore raw
In reply to Sudeep Holla

Hi Etienne,

Quoted 4 lines · Sudeep Holla

Commit 21e743300dd0 ("clk: stm32mp1: new compatible for secure RCC support") introduced a new Kconfig option COMMON_CLK_STM32MP157_SCMI which is not used anywhere.

Quoted 8 lines

Further, it looks like this Kconfig option is just to select bunch of other options which doesn't sound correct to me. There is no need for another SCMI firmware based clock driver and hence the same applies for the config option too.

Let us just drop the unused COMMON_CLK_STM32MP157_SCMI before it gives someone idea to write a specific clock driver for this SoC/platform.

Any thoughts ? I don't see any reason we need this Kconfig especially with no users.

Signature · 2 lines
Regards,
Sudeep
maintainer Applied
#4 lore raw
In reply to Sudeep Holla

Quoting Sudeep Holla (2021-10-15 08:00:43)

Quoted 9 lines

Commit 21e743300dd0 ("clk: stm32mp1: new compatible for secure RCC support") introduced a new Kconfig option COMMON_CLK_STM32MP157_SCMI which is not used anywhere.

Further, it looks like this Kconfig option is just to select bunch of other options which doesn't sound correct to me. There is no need for another SCMI firmware based clock driver and hence the same applies for the config option too.

Quoted 8 lines

Let us just drop the unused COMMON_CLK_STM32MP157_SCMI before it gives someone idea to write a specific clock driver for this SoC/platform.

Cc Etienne Carriere <[email protected]>
Cc Gabriel Fernandez <[email protected]>
Cc Stephen Boyd <[email protected]>

---

Applied to clk-next

I got tired of waiting