mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Firmware: broadcom sprom: clarifiy SSB dependency
@ 2016-03-14 14:21 Arnd Bergmann
  2016-03-14 14:37 ` Rafał Miłecki
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2016-03-14 14:21 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: Arnd Bergmann, Ralf Baechle, Paul Walmsley, linux-mips, linux-kernel

The broadcom firmware drvier calls into the ssb SPROM code if that
is enabled, but it fails if the SSB code is in a loadable module
because the bcm47xx firmware is always built-in:

drivers/firmware/built-in.o: In function `bcm47xx_sprom_register_fallbacks':
bcm47xx_sprom.c:(.text+0x11c4): undefined reference to `ssb_arch_register_fallback_sprom'

This adds a Kconfig dependency to ensure that we cannot turn on the
generic sprom support if the ssb sprom is in a module.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/firmware/broadcom/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/firmware/broadcom/Kconfig b/drivers/firmware/broadcom/Kconfig
index 3c7e5b741e37..42f7d9bfb148 100644
--- a/drivers/firmware/broadcom/Kconfig
+++ b/drivers/firmware/broadcom/Kconfig
@@ -13,6 +13,7 @@ config BCM47XX_NVRAM
 config BCM47XX_SPROM
 	bool "Broadcom SPROM driver"
 	depends on BCM47XX_NVRAM
+	depends on SSB=y || SSB=n
 	help
 	  Broadcom devices store configuration data in SPROM. Accessing it is
 	  specific to the bus host type, e.g. PCI(e) devices have it mapped in
-- 
2.7.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-14 15:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-14 14:21 [PATCH] Firmware: broadcom sprom: clarifiy SSB dependency Arnd Bergmann
2016-03-14 14:37 ` Rafał Miłecki
2016-03-14 15:34   ` Arnd Bergmann
2016-03-14 15:57     ` Rafał Miłecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®