diff mbox

ssb: host_soc depends on sprom

Message ID 8128014.DbbgBtKY3z@wuerfel
State Superseded
Headers show

Commit Message

Arnd Bergmann Jan. 13, 2016, 10:51 p.m. UTC
Drivers that use the SSB sprom functionality typically 'select SSB_SPROM'
from Kconfig, but CONFIG_SSB_HOST_SOC misses this, which results in
a build failure unless at least one of the other drivers that selects
it is enabled:

drivers/built-in.o: In function `ssb_host_soc_get_invariants':
(.text+0x459494): undefined reference to `ssb_fill_sprom_with_fallback'

This adds the same select statement that is used elsewhere.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Fixes: 541c9a84cd85 ("ssb: pick SoC invariants code from MIPS BCM47xx arch")
---
I'm not sure who the right person is to pick up the fix. The patch that
introduced the problem was merged by Kalle through the iwlwifi tree.

Comments

Kalle Valo Jan. 14, 2016, 6:46 a.m. UTC | #1
Arnd Bergmann <arnd@arndb.de> writes:

> Drivers that use the SSB sprom functionality typically 'select SSB_SPROM'

> from Kconfig, but CONFIG_SSB_HOST_SOC misses this, which results in

> a build failure unless at least one of the other drivers that selects

> it is enabled:

>

> drivers/built-in.o: In function `ssb_host_soc_get_invariants':

> (.text+0x459494): undefined reference to `ssb_fill_sprom_with_fallback'

>

> This adds the same select statement that is used elsewhere.

>

> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

> Fixes: 541c9a84cd85 ("ssb: pick SoC invariants code from MIPS BCM47xx arch")

> ---

> I'm not sure who the right person is to pick up the fix. The patch that

> introduced the problem was merged by Kalle through the iwlwifi tree.


I can take it. For historical reasons ssb patches go through my
wireless-drivers trees.

-- 
Kalle Valo
Rafał Miłecki Jan. 14, 2016, 8:45 a.m. UTC | #2
On 13 January 2016 at 23:51, Arnd Bergmann <arnd@arndb.de> wrote:
> Drivers that use the SSB sprom functionality typically 'select SSB_SPROM'

> from Kconfig, but CONFIG_SSB_HOST_SOC misses this, which results in

> a build failure unless at least one of the other drivers that selects

> it is enabled:

>

> drivers/built-in.o: In function `ssb_host_soc_get_invariants':

> (.text+0x459494): undefined reference to `ssb_fill_sprom_with_fallback'

>

> This adds the same select statement that is used elsewhere.

>

> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

> Fixes: 541c9a84cd85 ("ssb: pick SoC invariants code from MIPS BCM47xx arch")


I missed this dependency, thanks, patch looks OK.
David Miller Jan. 14, 2016, 9:46 p.m. UTC | #3
From: Kalle Valo <kvalo@codeaurora.org>

Date: Thu, 14 Jan 2016 08:46:29 +0200

> I can take it. For historical reasons ssb patches go through my

> wireless-drivers trees.


+1
diff mbox

Patch

diff --git a/drivers/ssb/Kconfig b/drivers/ssb/Kconfig
index 0c675861623f..d8e4219c2324 100644
--- a/drivers/ssb/Kconfig
+++ b/drivers/ssb/Kconfig
@@ -83,6 +83,7 @@  config SSB_SDIOHOST
 config SSB_HOST_SOC
 	bool "Support for SSB bus on SoC"
 	depends on SSB && BCM47XX_NVRAM
+	select SSB_SPROM
 	help
 	  Host interface for a SSB directly mapped into memory. This is
 	  for some Broadcom SoCs from the BCM47xx and BCM53xx lines.