All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] net: ethernet: Miscellaneous Kconfig and Makefile cleanups
@ 2018-07-04 11:50 Geert Uytterhoeven
  2018-07-04 11:50 ` [PATCH 1/3] net: ethernet: Make NET_VENDOR_AURORA default to yes Geert Uytterhoeven
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2018-07-04 11:50 UTC (permalink / raw)
  To: David S . Miller, Nicolas Ferre, Solarflare linux maintainers,
	Edward Cree, Bert Kenward
  Cc: netdev, linux-kernel, Geert Uytterhoeven

	Hi all,

This patch series contains a few Kconfig and Makefile cleanups w.r.t.
Ethernet vendors.

Thanks!

Geert Uytterhoeven (3):
  net: ethernet: Make NET_VENDOR_AURORA default to yes
  net: ethernet: Add missing VENDOR to Cadence and Packet Engines
    symbols
  net: ethernet: sfc: Make subdir logic consistent with other vendors

 drivers/net/ethernet/Makefile              | 7 +++----
 drivers/net/ethernet/aurora/Kconfig        | 1 +
 drivers/net/ethernet/cadence/Kconfig       | 6 +++---
 drivers/net/ethernet/packetengines/Kconfig | 6 +++---
 drivers/net/ethernet/sfc/Makefile          | 2 ++
 5 files changed, 12 insertions(+), 10 deletions(-)

-- 
2.17.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

* [PATCH 1/3] net: ethernet: Make NET_VENDOR_AURORA default to yes
  2018-07-04 11:50 [PATCH 0/3] net: ethernet: Miscellaneous Kconfig and Makefile cleanups Geert Uytterhoeven
@ 2018-07-04 11:50 ` Geert Uytterhoeven
  2018-07-04 11:50 ` [PATCH 2/3] net: ethernet: Add missing VENDOR to Cadence and Packet Engines symbols Geert Uytterhoeven
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2018-07-04 11:50 UTC (permalink / raw)
  To: David S . Miller, Nicolas Ferre, Solarflare linux maintainers,
	Edward Cree, Bert Kenward
  Cc: netdev, linux-kernel, Geert Uytterhoeven

Enabling NET_VENDOR_* Kconfig options does not directly affect the
kernel build.  Hence NET_VENDOR_AURORA should default to yes, like other
NET_VENDOR_* options.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/net/ethernet/aurora/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/aurora/Kconfig b/drivers/net/ethernet/aurora/Kconfig
index 8ba7f8ff3434000f..392f564d8fd436f2 100644
--- a/drivers/net/ethernet/aurora/Kconfig
+++ b/drivers/net/ethernet/aurora/Kconfig
@@ -1,5 +1,6 @@
 config NET_VENDOR_AURORA
 	bool "Aurora VLSI devices"
+	default y
 	help
 	  If you have a network (Ethernet) device belonging to this class,
 	  say Y.
-- 
2.17.1


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

* [PATCH 2/3] net: ethernet: Add missing VENDOR to Cadence and Packet Engines symbols
  2018-07-04 11:50 [PATCH 0/3] net: ethernet: Miscellaneous Kconfig and Makefile cleanups Geert Uytterhoeven
  2018-07-04 11:50 ` [PATCH 1/3] net: ethernet: Make NET_VENDOR_AURORA default to yes Geert Uytterhoeven
@ 2018-07-04 11:50 ` Geert Uytterhoeven
  2018-07-04 11:50 ` [PATCH 3/3] net: ethernet: sfc: Make subdir logic consistent with other vendors Geert Uytterhoeven
  2018-07-05 11:06 ` [PATCH 0/3] net: ethernet: Miscellaneous Kconfig and Makefile cleanups David Miller
  3 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2018-07-04 11:50 UTC (permalink / raw)
  To: David S . Miller, Nicolas Ferre, Solarflare linux maintainers,
	Edward Cree, Bert Kenward
  Cc: netdev, linux-kernel, Geert Uytterhoeven

The vendor guard Kconfig symbols for Cadence and Packet Engines use a
"NET_" prefix, while all other vendor guards use a "NET_VENDOR_"
prefix.  Hence make them consistent with the rest, and add the missing
trailing "S" for Packet Engines while at it.

As these options don't directly affect the kernel build, and default to
"y", this change has no impact on kernels built with existing
(def)configs.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/net/ethernet/Makefile              | 4 ++--
 drivers/net/ethernet/cadence/Kconfig       | 6 +++---
 drivers/net/ethernet/packetengines/Kconfig | 6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile
index 8fbfe9ce2fa53a69..0c3ab7efff8c9ddb 100644
--- a/drivers/net/ethernet/Makefile
+++ b/drivers/net/ethernet/Makefile
@@ -20,7 +20,7 @@ obj-$(CONFIG_NET_VENDOR_AQUANTIA) += aquantia/
 obj-$(CONFIG_NET_VENDOR_ARC) += arc/
 obj-$(CONFIG_NET_VENDOR_ATHEROS) += atheros/
 obj-$(CONFIG_NET_VENDOR_AURORA) += aurora/
-obj-$(CONFIG_NET_CADENCE) += cadence/
+obj-$(CONFIG_NET_VENDOR_CADENCE) += cadence/
 obj-$(CONFIG_NET_VENDOR_BROADCOM) += broadcom/
 obj-$(CONFIG_NET_VENDOR_BROCADE) += brocade/
 obj-$(CONFIG_NET_CALXEDA_XGMAC) += calxeda/
@@ -68,7 +68,7 @@ obj-$(CONFIG_NET_VENDOR_NVIDIA) += nvidia/
 obj-$(CONFIG_LPC_ENET) += nxp/
 obj-$(CONFIG_NET_VENDOR_OKI) += oki-semi/
 obj-$(CONFIG_ETHOC) += ethoc.o
-obj-$(CONFIG_NET_PACKET_ENGINE) += packetengines/
+obj-$(CONFIG_NET_VENDOR_PACKET_ENGINES) += packetengines/
 obj-$(CONFIG_NET_VENDOR_PASEMI) += pasemi/
 obj-$(CONFIG_NET_VENDOR_QLOGIC) += qlogic/
 obj-$(CONFIG_NET_VENDOR_QUALCOMM) += qualcomm/
diff --git a/drivers/net/ethernet/cadence/Kconfig b/drivers/net/ethernet/cadence/Kconfig
index 427d65a1a1261095..b9984015ca8c1a68 100644
--- a/drivers/net/ethernet/cadence/Kconfig
+++ b/drivers/net/ethernet/cadence/Kconfig
@@ -2,7 +2,7 @@
 # Atmel device configuration
 #
 
-config NET_CADENCE
+config NET_VENDOR_CADENCE
 	bool "Cadence devices"
 	depends on HAS_IOMEM
 	default y
@@ -16,7 +16,7 @@ config NET_CADENCE
 	  the remaining Atmel network card questions. If you say Y, you will be
 	  asked for your specific card in the following questions.
 
-if NET_CADENCE
+if NET_VENDOR_CADENCE
 
 config MACB
 	tristate "Cadence MACB/GEM support"
@@ -48,4 +48,4 @@ config MACB_PCI
 	  To compile this driver as a module, choose M here: the module
 	  will be called macb_pci.
 
-endif # NET_CADENCE
+endif # NET_VENDOR_CADENCE
diff --git a/drivers/net/ethernet/packetengines/Kconfig b/drivers/net/ethernet/packetengines/Kconfig
index b5ea2a56106ef3c8..1df28f2edd1f9b05 100644
--- a/drivers/net/ethernet/packetengines/Kconfig
+++ b/drivers/net/ethernet/packetengines/Kconfig
@@ -2,7 +2,7 @@
 # Packet engine device configuration
 #
 
-config NET_PACKET_ENGINE
+config NET_VENDOR_PACKET_ENGINES
 	bool "Packet Engine devices"
 	default y
 	depends on PCI
@@ -14,7 +14,7 @@ config NET_PACKET_ENGINE
 	  the questions about packet engine devices. If you say Y, you will
 	  be asked for your specific card in the following questions.
 
-if NET_PACKET_ENGINE
+if NET_VENDOR_PACKET_ENGINES
 
 config HAMACHI
 	tristate "Packet Engines Hamachi GNIC-II support"
@@ -40,4 +40,4 @@ config YELLOWFIN
 	  To compile this driver as a module, choose M here: the module
 	  will be called yellowfin.  This is recommended.
 
-endif # NET_PACKET_ENGINE
+endif # NET_VENDOR_PACKET_ENGINES
-- 
2.17.1


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

* [PATCH 3/3] net: ethernet: sfc: Make subdir logic consistent with other vendors
  2018-07-04 11:50 [PATCH 0/3] net: ethernet: Miscellaneous Kconfig and Makefile cleanups Geert Uytterhoeven
  2018-07-04 11:50 ` [PATCH 1/3] net: ethernet: Make NET_VENDOR_AURORA default to yes Geert Uytterhoeven
  2018-07-04 11:50 ` [PATCH 2/3] net: ethernet: Add missing VENDOR to Cadence and Packet Engines symbols Geert Uytterhoeven
@ 2018-07-04 11:50 ` Geert Uytterhoeven
  2018-07-05 10:54   ` Martin Habets
  2018-07-05 11:06 ` [PATCH 0/3] net: ethernet: Miscellaneous Kconfig and Makefile cleanups David Miller
  3 siblings, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2018-07-04 11:50 UTC (permalink / raw)
  To: David S . Miller, Nicolas Ferre, Solarflare linux maintainers,
	Edward Cree, Bert Kenward
  Cc: netdev, linux-kernel, Geert Uytterhoeven

Both SFC and SFC_FALCON depend on NET_VENDOR_SOLARFLARE, hence use the
latter to decide whether to descend into the sfc subdirectory.
Move the rule to descend into sfc/falcon to the sfc subdirectory.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/net/ethernet/Makefile     | 3 +--
 drivers/net/ethernet/sfc/Makefile | 2 ++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile
index 0c3ab7efff8c9ddb..22555e7fa752c67e 100644
--- a/drivers/net/ethernet/Makefile
+++ b/drivers/net/ethernet/Makefile
@@ -80,8 +80,7 @@ obj-$(CONFIG_NET_VENDOR_SAMSUNG) += samsung/
 obj-$(CONFIG_NET_VENDOR_SEEQ) += seeq/
 obj-$(CONFIG_NET_VENDOR_SILAN) += silan/
 obj-$(CONFIG_NET_VENDOR_SIS) += sis/
-obj-$(CONFIG_SFC) += sfc/
-obj-$(CONFIG_SFC_FALCON) += sfc/falcon/
+obj-$(CONFIG_NET_VENDOR_SOLARFLARE) += sfc/
 obj-$(CONFIG_NET_VENDOR_SGI) += sgi/
 obj-$(CONFIG_NET_VENDOR_SMSC) += smsc/
 obj-$(CONFIG_NET_VENDOR_SOCIONEXT) += socionext/
diff --git a/drivers/net/ethernet/sfc/Makefile b/drivers/net/ethernet/sfc/Makefile
index 3bac58d0f88b20f8..c5c297e78d068f41 100644
--- a/drivers/net/ethernet/sfc/Makefile
+++ b/drivers/net/ethernet/sfc/Makefile
@@ -6,3 +6,5 @@ sfc-$(CONFIG_SFC_MTD)	+= mtd.o
 sfc-$(CONFIG_SFC_SRIOV)	+= sriov.o siena_sriov.o ef10_sriov.o
 
 obj-$(CONFIG_SFC)	+= sfc.o
+
+obj-$(CONFIG_SFC_FALCON) += falcon/
-- 
2.17.1


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

* Re: [PATCH 3/3] net: ethernet: sfc: Make subdir logic consistent with other vendors
  2018-07-04 11:50 ` [PATCH 3/3] net: ethernet: sfc: Make subdir logic consistent with other vendors Geert Uytterhoeven
@ 2018-07-05 10:54   ` Martin Habets
  0 siblings, 0 replies; 6+ messages in thread
From: Martin Habets @ 2018-07-05 10:54 UTC (permalink / raw)
  To: Geert Uytterhoeven, David S . Miller, Bert Kenward
  Cc: Nicolas Ferre, Solarflare linux maintainers, Edward Cree, netdev,
	linux-kernel


On 04/07/18 12:50, Geert Uytterhoeven wrote:
> Both SFC and SFC_FALCON depend on NET_VENDOR_SOLARFLARE, hence use the
> latter to decide whether to descend into the sfc subdirectory.
> Move the rule to descend into sfc/falcon to the sfc subdirectory.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Acked-by: Martin Habets <mhabets@solarflare.com>

> ---
>  drivers/net/ethernet/Makefile     | 3 +--
>  drivers/net/ethernet/sfc/Makefile | 2 ++
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile
> index 0c3ab7efff8c9ddb..22555e7fa752c67e 100644
> --- a/drivers/net/ethernet/Makefile
> +++ b/drivers/net/ethernet/Makefile
> @@ -80,8 +80,7 @@ obj-$(CONFIG_NET_VENDOR_SAMSUNG) += samsung/
>  obj-$(CONFIG_NET_VENDOR_SEEQ) += seeq/
>  obj-$(CONFIG_NET_VENDOR_SILAN) += silan/
>  obj-$(CONFIG_NET_VENDOR_SIS) += sis/
> -obj-$(CONFIG_SFC) += sfc/
> -obj-$(CONFIG_SFC_FALCON) += sfc/falcon/
> +obj-$(CONFIG_NET_VENDOR_SOLARFLARE) += sfc/
>  obj-$(CONFIG_NET_VENDOR_SGI) += sgi/
>  obj-$(CONFIG_NET_VENDOR_SMSC) += smsc/
>  obj-$(CONFIG_NET_VENDOR_SOCIONEXT) += socionext/
> diff --git a/drivers/net/ethernet/sfc/Makefile b/drivers/net/ethernet/sfc/Makefile
> index 3bac58d0f88b20f8..c5c297e78d068f41 100644
> --- a/drivers/net/ethernet/sfc/Makefile
> +++ b/drivers/net/ethernet/sfc/Makefile
> @@ -6,3 +6,5 @@ sfc-$(CONFIG_SFC_MTD)	+= mtd.o
>  sfc-$(CONFIG_SFC_SRIOV)	+= sriov.o siena_sriov.o ef10_sriov.o
>  
>  obj-$(CONFIG_SFC)	+= sfc.o
> +
> +obj-$(CONFIG_SFC_FALCON) += falcon/
> 

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

* Re: [PATCH 0/3] net: ethernet: Miscellaneous Kconfig and Makefile cleanups
  2018-07-04 11:50 [PATCH 0/3] net: ethernet: Miscellaneous Kconfig and Makefile cleanups Geert Uytterhoeven
                   ` (2 preceding siblings ...)
  2018-07-04 11:50 ` [PATCH 3/3] net: ethernet: sfc: Make subdir logic consistent with other vendors Geert Uytterhoeven
@ 2018-07-05 11:06 ` David Miller
  3 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2018-07-05 11:06 UTC (permalink / raw)
  To: geert+renesas
  Cc: nicolas.ferre, linux-net-drivers, ecree, bkenward, netdev, linux-kernel

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: Wed,  4 Jul 2018 13:50:10 +0200

> This patch series contains a few Kconfig and Makefile cleanups w.r.t.
> Ethernet vendors.

Series applied to net-next, thanks Geert.

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

end of thread, other threads:[~2018-07-05 11:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-04 11:50 [PATCH 0/3] net: ethernet: Miscellaneous Kconfig and Makefile cleanups Geert Uytterhoeven
2018-07-04 11:50 ` [PATCH 1/3] net: ethernet: Make NET_VENDOR_AURORA default to yes Geert Uytterhoeven
2018-07-04 11:50 ` [PATCH 2/3] net: ethernet: Add missing VENDOR to Cadence and Packet Engines symbols Geert Uytterhoeven
2018-07-04 11:50 ` [PATCH 3/3] net: ethernet: sfc: Make subdir logic consistent with other vendors Geert Uytterhoeven
2018-07-05 10:54   ` Martin Habets
2018-07-05 11:06 ` [PATCH 0/3] net: ethernet: Miscellaneous Kconfig and Makefile cleanups David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.