Skip to contentSkip to conversation

soc: raspberrypi-power: add CONFIG_OF dependency

PATCH In review Arnd Bergmann 3 participants 6 messages Jul 6, 2016 – Jul 7, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 soc: raspberrypi-power: add CONFIG_OF dependency

We get a harmless warning if the RASPBERRYPI_POWER driver is enabled without CONFIG_OF during compile testing:

warning: RASPBERRYPI_POWER selects PM_GENERIC_DOMAINS_OF which has unmet direct dependencies (PM_GENERIC_DOMAINS && OF)

There is no need to select PM_GENERIC_DOMAINS_OF if OF is set, so we can replace the 'select' with a dependency.

---
 drivers/soc/bcm/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/soc/bcm/Kconfig +1 -2
index 97156aeed286..a39b0d58ddd0 100644
@@ -2,10 +2,9 @@ menu "Broadcom SoC drivers"
 
 config RASPBERRYPI_POWER
 	bool "Raspberry Pi power domain driver"
-	depends on ARCH_BCM2835 || COMPILE_TEST
+	depends on ARCH_BCM2835 || (COMPILE_TEST && OF)
 	depends on RASPBERRYPI_FIRMWARE=y
 	select PM_GENERIC_DOMAINS if PM
-	select PM_GENERIC_DOMAINS_OF if PM
 	help
 	  This enables support for the RPi power domains which can be enabled
 	  or disabled via the RPi firmware.
Signature · 1 line
2.9.0
#1 lore raw

PATCH 2/2 firmware: scpi: add CONFIG_OF dependency

We get a harmless warning if the ARM_SCPI_POWER_DOMAIN driver is enabled without CONFIG_OF during compile testing:

warning: (ARM_SCPI_POWER_DOMAIN) selects PM_GENERIC_DOMAINS_OF which has unmet direct dependencies (PM_GENERIC_DOMAINS && OF)

There is no need to select PM_GENERIC_DOMAINS_OF if OF is set, so we can replace the 'select' with a dependency.

Fixes 8bec4337ad40 ("firmware: scpi: add device power domain support using genpd")
---
 drivers/firmware/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/firmware/Kconfig +1 -2
index 541d3fb7ae43..0e22f241403b 100644
@@ -29,10 +29,9 @@ config ARM_SCPI_PROTOCOL
 
 config ARM_SCPI_POWER_DOMAIN
 	tristate "SCPI power domain driver"
-	depends on ARM_SCPI_PROTOCOL || COMPILE_TEST
+	depends on ARM_SCPI_PROTOCOL || (COMPILE_TEST && OF)
 	default y
 	select PM_GENERIC_DOMAINS if PM
-	select PM_GENERIC_DOMAINS_OF if PM
 	help
 	  This enables support for the SCPI power domains which can be
 	  enabled or disabled via the SCP firmware
Signature · 1 line
2.9.0
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] firmware: scpi: add CONFIG_OF dependency

Hi Arnd,

Quoted 8 lines · Arnd Bergmann

We get a harmless warning if the ARM_SCPI_POWER_DOMAIN driver is enabled without CONFIG_OF during compile testing:

warning: (ARM_SCPI_POWER_DOMAIN) selects PM_GENERIC_DOMAINS_OF which has unmet direct dependencies (PM_GENERIC_DOMAINS && OF)

There is no need to select PM_GENERIC_DOMAINS_OF if OF is set, so we can replace the 'select' with a dependency.

Thanks for spotting this and fixing. Do you plan to take this directly ? If so,

Signature · 2 lines
Regards,
Sudeep
Acked-by on v1 1/2
#4 lore raw
In reply to Arnd Bergmann
Quoted 9 lines · Arnd Bergmann

We get a harmless warning if the RASPBERRYPI_POWER driver is enabled without CONFIG_OF during compile testing:

warning: RASPBERRYPI_POWER selects PM_GENERIC_DOMAINS_OF which has unmet direct dependencies (PM_GENERIC_DOMAINS && OF)

There is no need to select PM_GENERIC_DOMAINS_OF if OF is set, so we can replace the 'select' with a dependency.

I'm guessing you'll take this patch directly.

author Applied
#5 lore raw
Quoted 7 lines · CEST Eric Anholt
Quoted 5 lines · Arnd Bergmann

We get a harmless warning if the RASPBERRYPI_POWER driver is enabled without CONFIG_OF during compile testing:

warning: RASPBERRYPI_POWER selects PM_GENERIC_DOMAINS_OF which has unmet direct dependencies (PM_GENERIC_DOMAINS && OF)

Quoted 9 lines
Quoted 4 lines

There is no need to select PM_GENERIC_DOMAINS_OF if OF is set, so we can replace the 'select' with a dependency.

I'm guessing you'll take this patch directly.

Applied into next/drivers, thanks for the Ack

Arnd

author Applied
#3 lore raw

Re: [PATCH 2/2] firmware: scpi: add CONFIG_OF dependency

In reply to Sudeep Holla
Quoted 6 lines · CEST Sudeep Holla
Quoted 5 lines · Arnd Bergmann

We get a harmless warning if the ARM_SCPI_POWER_DOMAIN driver is enabled without CONFIG_OF during compile testing:

warning: (ARM_SCPI_POWER_DOMAIN) selects PM_GENERIC_DOMAINS_OF which has unmet direct dependencies (PM_GENERIC_DOMAINS && OF)

Quoted 9 lines
Quoted 3 lines

There is no need to select PM_GENERIC_DOMAINS_OF if OF is set, so we can replace the 'select' with a dependency.

Thanks for spotting this and fixing. Do you plan to take this directly ? If so,

Applied to next/drivers, thanks for the Ack

Arnd