Skip to contentSkip to conversation

power: reset: Add MFD_SYSCON depends for brcmstb

PATCH In review Florian Fainelli 2 participants 2 messages Apr 30, 2015 – May 1, 2015 System reset/shutdown drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: reset: Add MFD_SYSCON depends for brcmstb

The Broadcom STB reboot driver depends on MFD_SYSCON, it uses syscon_regmap_lookup_by_phandle() which will not lookup syscon phandles if MFD_SYSCON is disabled, and instead will return -ENOSYS since it is turned into an inline stub.

Fixes 030494e75064c ("power: reset: Add reboot driver for brcmstb")

---
Sebastian,

Could you queue this as a fix for 4.1? Thanks!

 drivers/power/reset/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/power/reset/Kconfig +1 -0
index 028e76504519..f37135c312fd 100644
@@ -41,6 +41,7 @@ config POWER_RESET_AXXIA
 config POWER_RESET_BRCMSTB
 	bool "Broadcom STB reset driver" if COMPILE_TEST
 	depends on ARM
+	depends on MFD_SYSCON
 	default ARCH_BRCMSTB
 	help
 	  This driver provides restart support for ARM-based Broadcom STB
Signature · 1 line
2.1.0
#1 lore raw

Hi,

Quoted 7 lines · Florian Fainelli

The Broadcom STB reboot driver depends on MFD_SYSCON, it uses syscon_regmap_lookup_by_phandle() which will not lookup syscon phandles if MFD_SYSCON is disabled, and instead will return -ENOSYS since it is turned into an inline stub.

Fixes 030494e75064c ("power: reset: Add reboot driver for brcmstb")

Thanks, queued into fixes branch.

P.S.: Please rebase patches to current tree before sending them. It had a conflict with 4f5fd6404698 ("power/reset: brcmstb: Make the driver buildable on MIPS").

-- Sebastian