Skip to contentSkip to conversation

ata: fix gemini Kconfig dependencies

PATCH Applied Arnd Bergmann 3 participants 3 messages Jul 10, 2017 – Jul 11, 2017 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: fix gemini Kconfig dependencies

We cannot build the new ftide010 code without also building the faraday sata bridge driver:

drivers/ata/pata_ftide010.o: In function `pata_ftide010_probe':
pata_ftide010.c:(.text+0x2b8): undefined reference to gemini_sata_bridge_get' pata_ftide010.c:(.text+0x32c): undefined reference to gemini_sata_get_muxmode' pata_ftide010.c:(.text+0x358): undefined reference to gemini_sata_bridge_enabled' drivers/ata/pata_ftide010.o: In function pata_ftide010_gemini_port_stop':
pata_ftide010.c:(.text+0x520): undefined reference to gemini_sata_stop_bridge' drivers/ata/pata_ftide010.o: In function pata_ftide010_gemini_port_start':
pata_ftide010.c:(.text+0x5bc): undefined reference to `gemini_sata_start_bridge'

This adjusts the Kconfig dependencies accordingly.

Fixes be4e456ed3a5 ("ata: Add driver for Faraday Technology FTIDE010")
---
 drivers/ata/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/Kconfig +2 -2
index 948fc86980a1..363fc5330c21 100644
@@ -215,7 +215,7 @@ config SATA_FSL
 
 config SATA_GEMINI
 	tristate "Gemini SATA bridge support"
-	depends on PATA_FTIDE010
+	depends on ARCH_GEMINI || COMPILE_TEST
 	default ARCH_GEMINI
 	help
 	  This enabled support for the FTIDE010 to SATA bridge
@@ -613,7 +613,7 @@ config PATA_FTIDE010
 	tristate "Faraday Technology FTIDE010 PATA support"
 	depends on OF
 	depends on ARM
-	default ARCH_GEMINI
+	depends on SATA_GEMINI
 	help
 	  This option enables support for the Faraday FTIDE010
 	  PATA controller found in the Cortina Gemini SoCs.
Signature · 1 line
2.9.0
Applied
#1 lore raw
Quoted 12 lines · Arnd Bergmann

We cannot build the new ftide010 code without also building the faraday sata bridge driver:

drivers/ata/pata_ftide010.o: In function `pata_ftide010_probe':
pata_ftide010.c:(.text+0x2b8): undefined reference to gemini_sata_bridge_get' pata_ftide010.c:(.text+0x32c): undefined reference to gemini_sata_get_muxmode' pata_ftide010.c:(.text+0x358): undefined reference to gemini_sata_bridge_enabled' drivers/ata/pata_ftide010.o: In function pata_ftide010_gemini_port_stop':
pata_ftide010.c:(.text+0x520): undefined reference to gemini_sata_stop_bridge' drivers/ata/pata_ftide010.o: In function pata_ftide010_gemini_port_start':
pata_ftide010.c:(.text+0x5bc): undefined reference to `gemini_sata_start_bridge'

Quoted 4 lines

This adjusts the Kconfig dependencies accordingly.

Fixes be4e456ed3a5 ("ata: Add driver for Faraday Technology FTIDE010")

Applied to libata/for-4.13-fixes.

Thanks.

Signature · 1 line
tejun
Acked-by on v1 1/1
#2 lore raw
In reply to Arnd Bergmann
Quoted 12 lines · Arnd Bergmann

We cannot build the new ftide010 code without also building the faraday sata bridge driver:

drivers/ata/pata_ftide010.o: In function `pata_ftide010_probe':
pata_ftide010.c:(.text+0x2b8): undefined reference to gemini_sata_bridge_get' pata_ftide010.c:(.text+0x32c): undefined reference to gemini_sata_get_muxmode' pata_ftide010.c:(.text+0x358): undefined reference to gemini_sata_bridge_enabled' drivers/ata/pata_ftide010.o: In function pata_ftide010_gemini_port_stop':
pata_ftide010.c:(.text+0x520): undefined reference to gemini_sata_stop_bridge' drivers/ata/pata_ftide010.o: In function pata_ftide010_gemini_port_start':
pata_ftide010.c:(.text+0x5bc): undefined reference to `gemini_sata_start_bridge'

Quoted 4 lines

This adjusts the Kconfig dependencies accordingly.

Fixes be4e456ed3a5 ("ata: Add driver for Faraday Technology FTIDE010")

My intention was definately to have the bridge driver as a separate add-on as I suspect some systems use the PATA driver without the SATA bridge.

But we can definately deal with that when those users appear.

Yours,
Linus Walleij