netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
	Jamie Iles <jamie@jamieiles.com>
Subject: Re: [RFC 56/72] macb: Move the Atmel driver
Date: Mon, 27 Jun 2011 09:46:58 +0200	[thread overview]
Message-ID: <4E083572.6050302@atmel.com> (raw)
In-Reply-To: <1309010363-22750-57-git-send-email-jeffrey.t.kirsher@intel.com>

Hi,

Le 25/06/2011 15:59, Jeff Kirsher :
> Move the Atmel driver into drivers/net/ethernet/atmel/ and

I am not sure that "atmel" is the proper name for a directory containing
the macb.c driver. This controller has not been made by atmel and will
be shared with others soon (Cf. paches by Jamie Iles).

So two questions remains:
- will we need to have a directory for this driver?
- what will be the name of this directory?

Best regards,

> make the necessary Kconfig and Makefile changes.
> 
> CC: Nicolas Ferre <nicolas.ferre@atmel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> ---
>  MAINTAINERS                             |    2 +-
>  drivers/net/Kconfig                     |   14 -------------
>  drivers/net/Makefile                    |    1 -
>  drivers/net/ethernet/Kconfig            |    1 +
>  drivers/net/ethernet/Makefile           |    1 +
>  drivers/net/ethernet/atmel/Kconfig      |   32 +++++++++++++++++++++++++++++++
>  drivers/net/ethernet/atmel/Makefile     |    5 ++++
>  drivers/net/{ => ethernet/atmel}/macb.c |    0
>  drivers/net/{ => ethernet/atmel}/macb.h |    0
>  9 files changed, 40 insertions(+), 16 deletions(-)
>  create mode 100644 drivers/net/ethernet/atmel/Kconfig
>  create mode 100644 drivers/net/ethernet/atmel/Makefile
>  rename drivers/net/{ => ethernet/atmel}/macb.c (100%)
>  rename drivers/net/{ => ethernet/atmel}/macb.h (100%)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 506d4d0..9ddb715 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -1303,7 +1303,7 @@ F:	include/video/atmel_lcdc.h
>  ATMEL MACB ETHERNET DRIVER
>  M:	Nicolas Ferre <nicolas.ferre@atmel.com>
>  S:	Supported
> -F:	drivers/net/macb.*
> +F:	drivers/net/ethernet/atmel/
>  
>  ATMEL SPI DRIVER
>  M:	Nicolas Ferre <nicolas.ferre@atmel.com>
> diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
> index 9709106..7063b9c 100644
> --- a/drivers/net/Kconfig
> +++ b/drivers/net/Kconfig
> @@ -2,9 +2,6 @@
>  # Network device configuration
>  #
>  
> -config HAVE_NET_MACB
> -	bool
> -
>  menuconfig NETDEVICES
>  	default y if UML
>  	depends on NET
> @@ -224,17 +221,6 @@ menuconfig NET_ETHERNET
>  
>  if NET_ETHERNET
>  
> -config MACB
> -	tristate "Atmel MACB support"
> -	depends on HAVE_NET_MACB
> -	select PHYLIB
> -	help
> -	  The Atmel MACB ethernet interface is found on many AT32 and AT91
> -	  parts. Say Y to include support for the MACB chip.
> -
> -	  To compile this driver as a module, choose M here: the module
> -	  will be called macb.
> -
>  config SH_ETH
>  	tristate "Renesas SuperH Ethernet support"
>  	depends on SUPERH && \
> diff --git a/drivers/net/Makefile b/drivers/net/Makefile
> index 5c189ab..a2a1e0a 100644
> --- a/drivers/net/Makefile
> +++ b/drivers/net/Makefile
> @@ -68,7 +68,6 @@ obj-$(CONFIG_ETHOC) += ethoc.o
>  obj-$(CONFIG_GRETH) += greth.o
>  
>  obj-$(CONFIG_DNET) += dnet.o
> -obj-$(CONFIG_MACB) += macb.o
>  
>  obj-$(CONFIG_DEV_APPLETALK) += appletalk/
>  obj-$(CONFIG_ETHERNET) += ethernet/
> diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig
> index fede911..e7c5f0b 100644
> --- a/drivers/net/ethernet/Kconfig
> +++ b/drivers/net/ethernet/Kconfig
> @@ -39,6 +39,7 @@ config ARIADNE
>  
>  source "drivers/net/ethernet/arm/Kconfig"
>  source "drivers/net/ethernet/atheros/Kconfig"
> +source "drivers/net/ethernet/atmel/Kconfig"
>  source "drivers/net/ethernet/blackfin/Kconfig"
>  source "drivers/net/ethernet/broadcom/Kconfig"
>  source "drivers/net/ethernet/brocade/Kconfig"
> diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile
> index b8cc6ef..6c69e98 100644
> --- a/drivers/net/ethernet/Makefile
> +++ b/drivers/net/ethernet/Makefile
> @@ -10,6 +10,7 @@ obj-$(CONFIG_NET_VENDOR_APPLE) += apple/
>  obj-$(CONFIG_ARIADNE) += ariadne.o
>  obj-$(CONFIG_NET_ARM) += arm/
>  obj-$(CONFIG_NET_VENDOR_ATHEROS) += atheros/
> +obj-$(CONFIG_NET_ATMEL) += atmel/
>  obj-$(CONFIG_NET_BFIN) += blackfin/
>  obj-$(CONFIG_NET_VENDOR_BROADCOM) += broadcom/
>  obj-$(CONFIG_NET_VENDOR_BROCADE) += brocade/
> diff --git a/drivers/net/ethernet/atmel/Kconfig b/drivers/net/ethernet/atmel/Kconfig
> new file mode 100644
> index 0000000..a8c11ea
> --- /dev/null
> +++ b/drivers/net/ethernet/atmel/Kconfig
> @@ -0,0 +1,32 @@
> +#
> +# Atmel device configuration
> +#
> +
> +config HAVE_NET_MACB
> +	bool
> +
> +config NET_ATMEL
> +	bool "Atmel devices"
> +	depends on HAVE_NET_MACB
> +	---help---
> +	  If you have a network (Ethernet) card belonging to this class, say Y.
> +	  Make sure you know the name of your card. Read the Ethernet-HOWTO,
> +	  available from <http://www.tldp.org/docs.html#howto>.
> +
> +	  If unsure, 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 remaining Atmel network card questions. If you say Y, you will be
> +	  asked for your specific card in the following questions.
> +
> +config MACB
> +	tristate "Atmel MACB support"
> +	depends on NET_ATMEL && HAVE_NET_MACB
> +	select PHYLIB
> +	---help---
> +	  The Atmel MACB ethernet interface is found on many AT32 and AT91
> +	  parts. Say Y to include support for the MACB chip.
> +
> +	  To compile this driver as a module, choose M here: the module
> +	  will be called macb.
> diff --git a/drivers/net/ethernet/atmel/Makefile b/drivers/net/ethernet/atmel/Makefile
> new file mode 100644
> index 0000000..91f79b1
> --- /dev/null
> +++ b/drivers/net/ethernet/atmel/Makefile
> @@ -0,0 +1,5 @@
> +#
> +# Makefile for the Atmel network device drivers.
> +#
> +
> +obj-$(CONFIG_MACB) += macb.o
> diff --git a/drivers/net/macb.c b/drivers/net/ethernet/atmel/macb.c
> similarity index 100%
> rename from drivers/net/macb.c
> rename to drivers/net/ethernet/atmel/macb.c
> diff --git a/drivers/net/macb.h b/drivers/net/ethernet/atmel/macb.h
> similarity index 100%
> rename from drivers/net/macb.h
> rename to drivers/net/ethernet/atmel/macb.h


-- 
Nicolas Ferre


  reply	other threads:[~2011-06-27  7:47 UTC|newest]

Thread overview: 135+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-25 13:58 [RFC 00/72] Organize/Move of the Ethernet drivers in drivers/net/ Jeff Kirsher
2011-06-25 13:58 ` [RFC 01/72] drivers/net/ethernet: Add ethernet dir and config option Jeff Kirsher
2011-06-25 13:58 ` [RFC 02/72] 3c*/acenic/typhoon: Move 3Com Ethernet drivers Jeff Kirsher
2011-06-25 16:11   ` David Dillow
2011-06-28  8:22   ` Alan Cox
2011-07-09 15:27     ` Jeff Kirsher
2011-06-25 13:58 ` [RFC 03/72] amd8111e/pcnet32/*lance/mvme147: Move AMD chipset drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 04/72] 8390: Move the 8390 related drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 05/72] broadcom: Move the Broadcom drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 06/72] chelsio: Move the Chelsio drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 07/72] intel: Move the Intel wired LAN drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 08/72] qlogic: Move the QLogic drivers Jeff Kirsher
2011-06-27  1:30   ` Anirban Chakraborty
2011-06-25 13:58 ` [RFC 09/72] smc: Move the SMC drivers Jeff Kirsher
2011-06-25 14:30   ` Arnd Bergmann
2011-06-25 13:58 ` [RFC 10/72] ni5*/ni65: Move the Racal-Interlan (Micom) drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 11/72] cassini/niu/sun*: Move the Sun drivers Jeff Kirsher
2011-06-25 14:46   ` Oliver Hartkopp
2011-06-25 23:56     ` David Miller
2011-06-25 13:58 ` [RFC 12/72] sfc: Move the Solarflare drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 13/72] be2net: Move the Emulex driver Jeff Kirsher
2011-06-25 13:58 ` [RFC 14/72] bna: Move the Brocade driver Jeff Kirsher
2011-06-25 13:58 ` [RFC 15/72] mlx4: Move the Mellanox driver Jeff Kirsher
2011-06-25 13:58 ` [RFC 16/72] myri*: Move the Myricom drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 17/72] s2io/vxge: Move the Exar drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 18/72] ehea/ibm*: Move the IBM drivers Jeff Kirsher
2011-06-25 14:39   ` Oliver Hartkopp
2011-06-25 15:04     ` Arnd Bergmann
2011-06-26  0:37       ` Benjamin Herrenschmidt
2011-06-25 13:58 ` [RFC 19/72] enic: Move the Cisco driver Jeff Kirsher
2011-06-25 13:58 ` [RFC 20/72] pasemic_mac*: Move the PA Semi driver Jeff Kirsher
2011-06-26  1:34   ` Olof Johansson
2011-06-25 13:58 ` [RFC 21/72] tehuti: Move the Tehuti driver Jeff Kirsher
2011-06-25 13:58 ` [RFC 22/72] stmmac: Move the STMicroelectronics driver Jeff Kirsher
2011-06-25 13:58 ` [RFC 23/72] bmac/mace/macmace/mac89x0/cs89x0: Move the Macintosh (Apple) drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 24/72] *sonic/natsemi/ns83829: Move the National Semi-conductor drivers Jeff Kirsher
2011-06-25 17:21   ` Marc Gauthier
2011-06-25 13:58 ` [RFC 25/72] smsc*/smc911x: Move the SMSC drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 26/72] arm: Move the ARM/ACORN drivers Jeff Kirsher
2011-06-25 14:48   ` Arnd Bergmann
2011-06-25 14:50     ` Arnd Bergmann
2011-06-25 15:53     ` Russell King - ARM Linux
2011-06-25 16:03       ` Arnd Bergmann
2011-06-25 16:12         ` Russell King - ARM Linux
2011-06-25 16:59           ` Arnd Bergmann
2011-06-25 18:02             ` Jeff Kirsher
2011-06-25 18:06             ` Jeff Kirsher
2011-06-25 18:22               ` Arnd Bergmann
2011-06-26  6:38               ` Joe Perches
2011-06-27  3:10     ` Gole, Anant
2011-06-25 13:58 ` [RFC 27/72] ftgmac100/ftmac100: Move the Faraday drivers Jeff Kirsher
2011-06-27  1:51   ` Po-Yu Chuang
2011-06-25 13:58 ` [RFC 28/72] 8139*/atp/r8169: Move the Realtek drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 29/72] de6*/dl2k: Move the D-Link drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 30/72] atl*: Move the Atheros drivers Jeff Kirsher
2011-06-25 18:16   ` Chris Snook
2011-06-25 13:58 ` [RFC 31/72] tulip: Move the tulip drivers Jeff Kirsher
2011-07-03  0:04   ` Grant Grundler
2011-06-25 13:58 ` [RFC 32/72] ioc3-eth/meth/sgiseeq: Move the SGI drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 33/72] pch_gbe: Move the OKI driver Jeff Kirsher
2011-06-27  1:53   ` Toshiharu Okada
2011-06-25 13:58 ` [RFC 34/72] skge/sky2: Move the SysKonnect Ethernet drivers Jeff Kirsher
2011-06-25 14:49   ` Arnd Bergmann
2011-06-25 16:26     ` Stephen Hemminger
2011-06-25 13:58 ` [RFC 35/72] via-*: Move the VIA drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 36/72] eepro/eexpress/eth16i/ewrk3/lp486e/seeq8005/znet: Move the ISA drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 37/72] fsl_*/gianfar*/ucc_*: Move the Freescale drivers Jeff Kirsher
2011-06-29 15:39   ` Tabi Timur-B04825
2011-07-09 15:07     ` Jeff Kirsher
2011-06-25 13:58 ` [RFC 38/72] ks8*/ksz8*: Move the Micrel drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 39/72] mv643xx/pxa168: Move the Marvell drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 40/72] spider_net: Move the spider_net (IBM) driver Jeff Kirsher
2011-06-25 14:34   ` Arnd Bergmann
2011-06-25 13:58 ` [RFC 41/72] sis*: Move the Silicon Integrated Systems (SiS) drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 42/72] 82586.c/fec*: Move the Motorola drivers Jeff Kirsher
2011-06-25 16:53   ` Arnd Bergmann
2011-06-25 13:58 ` [RFC 43/72] a2065/ariadne: Move the a2065/ariadne drivers Jeff Kirsher
2011-06-28 20:33   ` Geert Uytterhoeven
2011-07-09 14:30     ` Jeff Kirsher
2011-07-10 19:34       ` Geert Uytterhoeven
2011-07-11  0:48         ` Jeff Kirsher
2011-07-11  6:33           ` Geert Uytterhoeven
2011-07-11  9:39             ` Jeff Kirsher
2011-07-11  9:51               ` Geert Uytterhoeven
2011-07-11 11:31               ` Christoph Hellwig
2011-07-11 11:41                 ` David Miller
2011-07-10 19:56       ` Christoph Hellwig
2011-06-25 13:58 ` [RFC 44/72] s6gmac/tsi108_eth: Move the s6gmac/tsi108_eth drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 45/72] tlan/cpmac: Move the TI drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 46/72] ixp2000: Move the Radisys driver Jeff Kirsher
2011-06-26 11:47   ` Lennert Buytenhek
2011-07-09 15:58     ` Jeff Kirsher
2011-07-15  0:08       ` Lennert Buytenhek
2011-07-15  1:19         ` Jeff Kirsher
2011-07-15 10:32           ` Lennert Buytenhek
2011-06-25 13:58 ` [RFC 47/72] hamachi/yellowfin: Move the packet engine drivers Jeff Kirsher
2011-06-25 13:58 ` [RFC 48/72] octeon: Move the Cavium driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 49/72] jme: Move the JME driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 50/72] xilinx/ll_temac: Move the Xilinx drivers Jeff Kirsher
2011-06-25 13:59 ` [RFC 51/72] ipg: Move the IC Plus driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 52/72] ps3_gelic*: Move the Sony (PS3) drivers Jeff Kirsher
2011-06-25 14:54   ` Arnd Bergmann
2011-06-25 16:25   ` Geoff Levand
2011-06-25 13:59 ` [RFC 53/72] korina: Move the IDT driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 54/72] au1000_eth/mipsnet/tc35815: Move the MIPS drivers Jeff Kirsher
2011-06-25 16:13   ` Ralf Baechle
2011-06-25 18:11     ` Jeff Kirsher
2011-06-25 13:59 ` [RFC 55/72] bfin_mac: Move the Blackfin driver Jeff Kirsher
2011-06-25 14:57   ` Arnd Bergmann
2011-06-27 18:41   ` Hennerich, Michael
2011-06-25 13:59 ` [RFC 56/72] macb: Move the Atmel driver Jeff Kirsher
2011-06-27  7:46   ` Nicolas Ferre [this message]
2011-06-27  9:29     ` Jamie Iles
2011-06-25 13:59 ` [RFC 57/72] sc92031: Move the Silan driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 58/72] sundance: Move the sundance driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 59/72] r6040: Move the RDC driver Jeff Kirsher
2011-06-25 18:59   ` Florian Fainelli
2011-06-25 13:59 ` [RFC 60/72] fealnx: Move the Myson driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 61/72] forcedeth: Move the NVIDIA nForce driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 62/72] starfire: Move the starfire driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 63/72] hp100/depca: Move the HP and Digital drivers Jeff Kirsher
2011-06-25 13:59 ` [RFC 64/72] at1700: Move the Allied Telesis driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 65/72] dnet: Move the Dave Ethernet driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 66/72] ethoc: Move the Avionic driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 67/72] greth: Move the Aeroflex Gaisler driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 68/72] enc28j60: Move the enc28j60 driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 69/72] dm9000: Move the Davicom driver Jeff Kirsher
2011-06-27  9:45   ` Sascha Hauer
2011-06-25 13:59 ` [RFC 70/72] netx: Move the netx driver Jeff Kirsher
2011-06-27  9:45   ` Sascha Hauer
2011-06-25 13:59 ` [RFC 71/72] sh_eth: Move the Renesas SuperH driver Jeff Kirsher
2011-06-25 13:59 ` [RFC 72/72] drivers/net: Kconfig and Makefile cleanup Jeff Kirsher
2011-06-26  7:54 ` [RFC 00/72] Organize/Move of the Ethernet drivers in drivers/net/ Bill Fink
2011-06-26  8:35 ` Francois Romieu
2011-06-27  5:35 ` Jeff Kirsher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E083572.6050302@atmel.com \
    --to=nicolas.ferre@atmel.com \
    --cc=davem@davemloft.net \
    --cc=jamie@jamieiles.com \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).