Skip to contentSkip to conversation

net: ec_bhf: Add runtime dependencies

PATCH Superseded Jean Delvare 3 participants 3 messages May 26, 2014 – May 30, 2014

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ec_bhf: Add runtime dependencies

The ec_bhf driver is specific to the Beckhoff CX5020, an embedded PC based on a 32-bit Intel Atom CPU. So we can add a dependency on X86_32, with COMPILE_TEST as an alternative to still allow for broader build-testing.

Cc Darek Marcinkiewicz <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/Kconfig +1 -0
@@ -39,6 +39,7 @@ source "drivers/net/ethernet/cisco/Kconf
 config CX_ECAT
 	tristate "Beckhoff CX5020 EtherCAT master support"
 	depends on PCI
+	depends on X86_32 || COMPILE_TEST
 	---help---
 	  Driver for EtherCAT master module located on CCAT FPGA
 	  that can be found on Beckhoff CX5020, and possibly other of CX
Signature · 2 lines
Jean Delvare
SUSE L3 Support
#1 lore raw
Quoted 17 lines · Jean Delvare

The ec_bhf driver is specific to the Beckhoff CX5020, an embedded PC based on a 32-bit Intel Atom CPU. So we can add a dependency on X86_32, with COMPILE_TEST as an alternative to still allow for broader build-testing.

Cc Darek Marcinkiewicz <[email protected]>
Cc David S. Miller <[email protected]>
---
 drivers/net/ethernet/Kconfig |    1 +
 1 file changed, 1 insertion(+)

drivers/net/ethernet/Kconfig source "drivers/net/ethernet/cisco/Kconf · line 45

Quoted 7 lines
drivers/net/ethernet/Kconfig +1 -0
@@ -39,6 +39,7 @@ source "drivers/net/ethernet/cisco/Kconf
 config CX_ECAT
 	tristate "Beckhoff CX5020 EtherCAT master support"
 	depends on PCI
+	depends on X86_32 || COMPILE_TEST
 	---help---
 	  Driver for EtherCAT master module located on CCAT FPGA
 	  that can be found on Beckhoff CX5020, and possibly other of CX

It makes sense, just one more comment. It is pretty likely that this driver also works with CX20** family of Beckhoff embedded PCs, which have 64bit Intel iCore processor. Unfortunately, I haven't yet had a chance to get my hands on any of those so cannot tell for sure. Maybe allowing this driver also for x64 would be slightly better option?

Signature · 1 line
DM
maintainer
#2 lore raw
In reply to Jean Delvare

From: Jean Delvare <[email protected]>
Date: Mon, 26 May 2014 21:26:14 +0200

Quoted 6 lines

The ec_bhf driver is specific to the Beckhoff CX5020, an embedded PC based on a 32-bit Intel Atom CPU. So we can add a dependency on X86_32, with COMPILE_TEST as an alternative to still allow for broader build-testing.

Please follow Darek's recommendationa and allow X86_64 as well.

Thanks.