Skip to contentSkip to conversation

Cleanup some BRCMSTB Kconfig options

PATCH Applied Peter Robinson 5 participants 10 messages Oct 9, 2023 – Oct 13, 2023 System reset/shutdown drivers

lore
Share & tools
lore
#0 lore raw

cover Cleanup some BRCMSTB Kconfig options

Most of the BRCMSTB drivers correctly depend on ARCH_BRCMSTB but some of the options depend on ARM and ARM64 instead. This cleans those up to be uniform with the rest of the drivers for the SoC to make it a bit more straight forward when enabling (or not) the SoC and associate drivers.

Peter Robinson (3):
soc: bcm: brcmstb: depend on ARCH_BRCMSTB over arm arches
power: reset: brcmstb: Depend on actual SoC dependencies
bus: brcmstb_gisb: Depend on SoC specifics over generic arm

 drivers/bus/Kconfig         | 2 +-
 drivers/power/reset/Kconfig | 2 +-
 drivers/soc/bcm/Kconfig     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 7 lines
2.41.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

PATCH 1/3 soc: bcm: brcmstb: depend on ARCH_BRCMSTB over arm arches

The SOC_BRCMSTB is better depending on ARCH_BRCMSTB as it's defined for both arm and aarch64 but is more specific to the actual SoC's dependencies, it'll still get compile tested.

---
 drivers/soc/bcm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/bcm/Kconfig +1 -1
index f96906795fa6..ffca9e1d8677 100644
@@ -33,7 +33,7 @@ config SOC_BCM63XX
 
 config SOC_BRCMSTB
 	bool "Broadcom STB SoC drivers"
-	depends on ARM || ARM64 || BMIPS_GENERIC || COMPILE_TEST
+	depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
 	select SOC_BUS
 	help
 	  Enables drivers for the Broadcom Set-Top Box (STB) series of chips.
Signature · 7 lines
2.41.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw

Re: [PATCH 1/3] soc: bcm: brcmstb: depend on ARCH_BRCMSTB over arm arches

From: Florian Fainelli <[email protected]>

Quoted 6 lines · Peter Robinson

The SOC_BRCMSTB is better depending on ARCH_BRCMSTB as it's defined for both arm and aarch64 but is more specific to the actual SoC's dependencies, it'll still get compile tested.

---

Applied to https://github.com/Broadcom/stblinux/commits/drivers/next, thanks! --
Florian

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw

PATCH 2/3 power: reset: brcmstb: Depend on actual SoC dependencies

In reply to Peter Robinson

Depend on the explicit SoC defines rather than generic architectures like most of the rest of the HW drivers do. This makes the drivers only available for the HW and for compile testing.

---
 drivers/power/reset/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/reset/Kconfig +1 -1
index 411e00b255d6..fece990af4a7 100644
@@ -66,7 +66,7 @@ config POWER_RESET_BRCMKONA
 
 config POWER_RESET_BRCMSTB
 	bool "Broadcom STB reset driver"
-	depends on ARM || ARM64 || MIPS || COMPILE_TEST
+	depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
 	depends on MFD_SYSCON
 	default ARCH_BRCMSTB || BMIPS_GENERIC
 	help
Signature · 1 line
2.41.0
Acked-by on v1 2/3
#4 lore raw

Re: [PATCH 2/3] power: reset: brcmstb: Depend on actual SoC dependencies

Quoted 8 lines · Peter Robinson

Depend on the explicit SoC defines rather than generic architectures like most of the rest of the HW drivers do. This makes the drivers only available for the HW and for compile testing.

Signature · 1 line
Florian
#5 lore raw

PATCH 3/3 bus: brcmstb_gisb: Depend on SoC specifics over generic arm

In reply to Peter Robinson

Depend on the explicit SoC defines rather than generic architectures like most of the rest of the HW drivers do.

---
 drivers/bus/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/Kconfig +1 -1
index c98dd6ca2629..e6742998f372 100644
@@ -31,7 +31,7 @@ config ARM_INTEGRATOR_LM
 
 config BRCMSTB_GISB_ARB
 	tristate "Broadcom STB GISB bus arbiter"
-	depends on ARM || ARM64 || MIPS
+	depends on ARCH_BRCMSTB || BMIPS_GENERIC
 	default ARCH_BRCMSTB || BMIPS_GENERIC
 	help
 	  Driver for the Broadcom Set Top Box System-on-a-chip internal bus
Signature · 7 lines
2.41.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#6 lore raw

Re: [PATCH 3/3] bus: brcmstb_gisb: Depend on SoC specifics over generic arm

Quoted 13 lines · Peter Robinson

Depend on the explicit SoC defines rather than generic architectures like most of the rest of the HW drivers do.

---
 drivers/bus/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/Kconfig +0 -0
index c98dd6ca2629..e6742998f372 100644

drivers/bus/Kconfig config ARM_INTEGRATOR_LM · line 34

Quoted 5 lines
drivers/bus/Kconfig +1 -1
@@ -31,7 +31,7 @@ config ARM_INTEGRATOR_LM
 
 config BRCMSTB_GISB_ARB
 	tristate "Broadcom STB GISB bus arbiter"
-	depends on ARM || ARM64 || MIPS
+	depends on ARCH_BRCMSTB || BMIPS_GENERIC

If there are no compile time dependencies, it might be good to also add "|| COMPILE_TEST" to the dependency and have the drivers built in an x86_64 allmodconfig.

Arnd

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#7 lore raw

Re: [PATCH 3/3] bus: brcmstb_gisb: Depend on SoC specifics over generic arm

Quoted 15 lines · Arnd Bergmann
Quoted 14 lines · Peter Robinson

Depend on the explicit SoC defines rather than generic architectures like most of the rest of the HW drivers do.

---
  drivers/bus/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/Kconfig +0 -0
index c98dd6ca2629..e6742998f372 100644
@@ -31,7 +31,7 @@ config ARM_INTEGRATOR_LM
 
Quoted 8 lines

drivers/bus/Kconfig config ARM_INTEGRATOR_LM · line 34

Quoted 4 lines
drivers/bus/Kconfig +1 -1
  config BRCMSTB_GISB_ARB
  	tristate "Broadcom STB GISB bus arbiter"
-	depends on ARM || ARM64 || MIPS
+	depends on ARCH_BRCMSTB || BMIPS_GENERIC

If there are no compile time dependencies, it might be good to also add "|| COMPILE_TEST" to the dependency and have the drivers built in an x86_64 allmodconfig.

Agreed, I did apply Peter's patch because I think this can be a separate patch. Thanks!

Signature · 7 lines
Florian


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#8 lore raw

Re: [PATCH 3/3] bus: brcmstb_gisb: Depend on SoC specifics over generic arm

In reply to Peter Robinson

From: Florian Fainelli <[email protected]>

Quoted 5 lines · Peter Robinson

Depend on the explicit SoC defines rather than generic architectures like most of the rest of the HW drivers do.

---

Applied to https://github.com/Broadcom/stblinux/commits/drivers/next, thanks! --
Florian

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#9 lore raw

Re: (subset) [PATCH 0/3] Cleanup some BRCMSTB Kconfig options

In reply to Peter Robinson
Quoted 6 lines · Peter Robinson

Most of the BRCMSTB drivers correctly depend on ARCH_BRCMSTB but some of the options depend on ARM and ARM64 instead. This cleans those up to be uniform with the rest of the drivers for the SoC to make it a bit more straight forward when enabling (or not) the SoC and associate drivers.

Quoted 6 lines

Peter Robinson (3):
soc: bcm: brcmstb: depend on ARCH_BRCMSTB over arm arches
power: reset: brcmstb: Depend on actual SoC dependencies
bus: brcmstb_gisb: Depend on SoC specifics over generic arm

[...]

Applied, thanks!

[2/3] power: reset: brcmstb: Depend on actual SoC dependencies

      commit: 3c693ac29e3fb4e1d88652e633a9dc16e1dd76e4

Best regards,

Signature · 7 lines
Sebastian Reichel <[email protected]>


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel