* [PATCH] ethernet: sfc: Add Kconfig entry for vendor Solarflare
@ 2016-12-20 13:38 Tobias Klauser
2016-12-20 17:29 ` Edward Cree
2016-12-20 19:20 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Tobias Klauser @ 2016-12-20 13:38 UTC (permalink / raw)
To: netdev; +Cc: linux-net-drivers, ecree, bkenward
Since commit
5a6681e22c14 ("sfc: separate out SFC4000 ("Falcon") support into new sfc-falcon driver")
there are two drivers for Solarflare devices, but both still show up
directly beneath "Ethernet driver support" in the Kconfig. Follow the
pattern of other vendors and group them beneath an own vendor Kconfig
entry for Solarflare.
Cc: Edward Cree <ecree@solarflare.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
drivers/net/ethernet/Kconfig | 1 -
drivers/net/ethernet/sfc/Kconfig | 21 +++++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig
index 6e16e441f85e..e4c28fed61d5 100644
--- a/drivers/net/ethernet/Kconfig
+++ b/drivers/net/ethernet/Kconfig
@@ -166,7 +166,6 @@ source "drivers/net/ethernet/seeq/Kconfig"
source "drivers/net/ethernet/silan/Kconfig"
source "drivers/net/ethernet/sis/Kconfig"
source "drivers/net/ethernet/sfc/Kconfig"
-source "drivers/net/ethernet/sfc/falcon/Kconfig"
source "drivers/net/ethernet/sgi/Kconfig"
source "drivers/net/ethernet/smsc/Kconfig"
source "drivers/net/ethernet/stmicro/Kconfig"
diff --git a/drivers/net/ethernet/sfc/Kconfig b/drivers/net/ethernet/sfc/Kconfig
index 46f7be85f5a3..2c032629c369 100644
--- a/drivers/net/ethernet/sfc/Kconfig
+++ b/drivers/net/ethernet/sfc/Kconfig
@@ -1,3 +1,20 @@
+#
+# Solarflare device configuration
+#
+
+config NET_VENDOR_SOLARFLARE
+ bool "Solarflare devices"
+ default y
+ ---help---
+ If you have a network (Ethernet) card belonging to this class, say Y.
+
+ Note that the answer to this question doesn't directly affect the
+ kernel: saying N will just cause the configurator to skip all
+ the questions about Solarflare devices. If you say Y, you will be asked
+ for your specific card in the following questions.
+
+if NET_VENDOR_SOLARFLARE
+
config SFC
tristate "Solarflare SFC9000/SFC9100-family support"
depends on PCI
@@ -44,3 +61,7 @@ config SFC_MCDI_LOGGING
Driver-Interface) commands and responses, allowing debugging of
driver/firmware interaction. The tracing is actually enabled by
a sysfs file 'mcdi_logging' under the PCI device.
+
+source "drivers/net/ethernet/sfc/falcon/Kconfig"
+
+endif # NET_VENDOR_SOLARFLARE
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] ethernet: sfc: Add Kconfig entry for vendor Solarflare
2016-12-20 13:38 [PATCH] ethernet: sfc: Add Kconfig entry for vendor Solarflare Tobias Klauser
@ 2016-12-20 17:29 ` Edward Cree
2016-12-20 19:20 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Edward Cree @ 2016-12-20 17:29 UTC (permalink / raw)
To: Tobias Klauser, netdev; +Cc: linux-net-drivers, bkenward
On 20/12/16 13:38, Tobias Klauser wrote:
> Since commit
>
> 5a6681e22c14 ("sfc: separate out SFC4000 ("Falcon") support into new sfc-falcon driver")
>
> there are two drivers for Solarflare devices, but both still show up
> directly beneath "Ethernet driver support" in the Kconfig. Follow the
> pattern of other vendors and group them beneath an own vendor Kconfig
> entry for Solarflare.
>
> Cc: Edward Cree <ecree@solarflare.com>
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Edward Cree <ecree@solarflare.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ethernet: sfc: Add Kconfig entry for vendor Solarflare
2016-12-20 13:38 [PATCH] ethernet: sfc: Add Kconfig entry for vendor Solarflare Tobias Klauser
2016-12-20 17:29 ` Edward Cree
@ 2016-12-20 19:20 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2016-12-20 19:20 UTC (permalink / raw)
To: tklauser; +Cc: netdev, linux-net-drivers, ecree, bkenward
From: Tobias Klauser <tklauser@distanz.ch>
Date: Tue, 20 Dec 2016 14:38:26 +0100
> Since commit
>
> 5a6681e22c14 ("sfc: separate out SFC4000 ("Falcon") support into new sfc-falcon driver")
>
> there are two drivers for Solarflare devices, but both still show up
> directly beneath "Ethernet driver support" in the Kconfig. Follow the
> pattern of other vendors and group them beneath an own vendor Kconfig
> entry for Solarflare.
>
> Cc: Edward Cree <ecree@solarflare.com>
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-20 19:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-20 13:38 [PATCH] ethernet: sfc: Add Kconfig entry for vendor Solarflare Tobias Klauser
2016-12-20 17:29 ` Edward Cree
2016-12-20 19:20 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox