Skip to contentSkip to conversation

ARM: sti: remove configs SOC_STIH415 and SOC_STIH416

PATCH In review Lukas Bulwahn 2 participants 4 messages Mar 30, 2023 – Mar 31, 2023

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

PATCH 1/2 ARM: sti: remove configs SOC_STIH415 and SOC_STIH416

Commit b4bba92dfbe2 ("drm/sti: remove stih415-416 platform support") removes the reference to configs SOC_STIH415 and SOC_STIH416 in the config DRM_STI. Commit 64933513e461 ("reset: sti: Remove STiH415/6 reset support") removes the two configs STIH41{5,6}_RESET.

With those changes, the two configs SOC_STIH415 and SOC_STIH416 has no remaining effect. Remove them.

---
 arch/arm/mach-sti/Kconfig | 18 ------------------
 1 file changed, 18 deletions(-)
arch/arm/mach-sti/Kconfig +0 -18
index b2d45cf10a3c..8c21dccb61b7 100644
@@ -26,24 +26,6 @@ menuconfig ARCH_STI
 
 if ARCH_STI
 
-config SOC_STIH415
-	bool "STiH415 STMicroelectronics Consumer Electronics family"
-	default y
-	help
-	  This enables support for STMicroelectronics Digital Consumer
-	  Electronics family StiH415 parts, primarily targeted at set-top-box
-	  and other digital audio/video applications using Flattned Device
-	  Trees.
-
-config SOC_STIH416
-	bool "STiH416 STMicroelectronics Consumer Electronics family"
-	default y
-	help
-	  This enables support for STMicroelectronics Digital Consumer
-	  Electronics family StiH416 parts, primarily targeted at set-top-box
-	  and other digital audio/video applications using Flattened Device
-	  Trees.
-
 config SOC_STIH407
 	bool "STiH407 STMicroelectronics Consumer Electronics family"
 	default y
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 reset: sti: simplify driver's config and build

With commit 64933513e461 ("reset: sti: Remove STiH415/6 reset support"), there is only one sti reset driver left and there no need to define a dedicated config STI_RESET_SYSCFG, which is selected by the config for the STiH407 reset driver.

Simply add reset-syscfg.c to the build for the STiH407 reset driver.

---
 drivers/reset/sti/Kconfig  | 4 ----
 drivers/reset/sti/Makefile | 4 +---
 2 files changed, 1 insertion(+), 7 deletions(-)
drivers/reset/sti/Kconfig +0 -4
index 9455e1c7a5aa..a2622e146b8b 100644
@@ -1,11 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 if ARCH_STI
 
-config STI_RESET_SYSCFG
-	bool
-
 config STIH407_RESET
 	bool
-	select STI_RESET_SYSCFG
 
 endif
drivers/reset/sti/Makefile +1 -3
index 3eb30f7e8e3d..5e833496cee3 100644
@@ -1,4 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_STI_RESET_SYSCFG) += reset-syscfg.o
-
-obj-$(CONFIG_STIH407_RESET) += reset-stih407.o
+obj-$(CONFIG_STIH407_RESET) += reset-stih407.o reset-syscfg.o
Signature · 1 line
2.17.1
maintainer Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] reset: sti: simplify driver's config and build

Quoted 34 lines · Lukas Bulwahn

With commit 64933513e461 ("reset: sti: Remove STiH415/6 reset support"), there is only one sti reset driver left and there no need to define a dedicated config STI_RESET_SYSCFG, which is selected by the config for the STiH407 reset driver.

Simply add reset-syscfg.c to the build for the STiH407 reset driver.

---
 drivers/reset/sti/Kconfig  | 4 ----
 drivers/reset/sti/Makefile | 4 +---
 2 files changed, 1 insertion(+), 7 deletions(-)
drivers/reset/sti/Kconfig +0 -4
index 9455e1c7a5aa..a2622e146b8b 100644
@@ -1,11 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 if ARCH_STI
 
-config STI_RESET_SYSCFG
-	bool
-
 config STIH407_RESET
 	bool
-	select STI_RESET_SYSCFG
 
 endif
drivers/reset/sti/Makefile +0 -0
index 3eb30f7e8e3d..5e833496cee3 100644

drivers/reset/sti/Makefile line 2

Quoted 5 lines
drivers/reset/sti/Makefile +1 -3
@@ -1,4 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_STI_RESET_SYSCFG) += reset-syscfg.o
-
-obj-$(CONFIG_STIH407_RESET) += reset-stih407.o
+obj-$(CONFIG_STIH407_RESET) += reset-stih407.o reset-syscfg.o

Thanks
Patrice

maintainer Reviewed-by on v1 1/2
#3 lore raw
In reply to Lukas Bulwahn
Quoted 32 lines · Lukas Bulwahn

Commit b4bba92dfbe2 ("drm/sti: remove stih415-416 platform support") removes the reference to configs SOC_STIH415 and SOC_STIH416 in the config DRM_STI. Commit 64933513e461 ("reset: sti: Remove STiH415/6 reset support") removes the two configs STIH41{5,6}_RESET.

With those changes, the two configs SOC_STIH415 and SOC_STIH416 has no remaining effect. Remove them.

---
 arch/arm/mach-sti/Kconfig | 18 ------------------
 1 file changed, 18 deletions(-)
arch/arm/mach-sti/Kconfig +0 -11
index b2d45cf10a3c..8c21dccb61b7 100644
@@ -26,24 +26,6 @@ menuconfig ARCH_STI
 
 if ARCH_STI
 
-config SOC_STIH415
-	bool "STiH415 STMicroelectronics Consumer Electronics family"
-	default y
-	help
-	  This enables support for STMicroelectronics Digital Consumer
-	  Electronics family StiH415 parts, primarily targeted at set-top-box
-	  and other digital audio/video applications using Flattned Device
-	  Trees.
-
-config SOC_STIH416
-	bool "STiH416 STMicroelectronics Consumer Electronics family"

arch/arm/mach-sti/Kconfig menuconfig ARCH_STI · line 31

Quoted 10 lines
arch/arm/mach-sti/Kconfig +0 -7
-	default y
-	help
-	  This enables support for STMicroelectronics Digital Consumer
-	  Electronics family StiH416 parts, primarily targeted at set-top-box
-	  and other digital audio/video applications using Flattened Device
-	  Trees.
-
 config SOC_STIH407
 	bool "STiH407 STMicroelectronics Consumer Electronics family"
 	default y

Thanks
Patrice