From: Arnd Bergmann <arnd@arndb.de>
To: Romain Perier <romain.perier@gmail.com>
Cc: davem@davemloft.net, heiko@sntech.de, tklauser@distanz.ch,
b.galvani@gmail.com, eric.dumazet@gmail.com,
yongjun_wei@trendmicro.com.cn, f.fainelli@gmail.com,
netdev@vger.kernel.org
Subject: Re: [PATCH v3 3/3] ethernet: arc: Add support for specific SoC glue layer device tree bindings
Date: Tue, 26 Aug 2014 11:44:17 +0200 [thread overview]
Message-ID: <6043486.sQSNjC9EMf@wuerfel> (raw)
In-Reply-To: <1409045032-29604-3-git-send-email-romain.perier@gmail.com>
The code changes all look good in this version, but the Kconfig and changelog
are not yet perfect:
On Tuesday 26 August 2014 09:23:52 Romain Perier wrote:
> Some platforms have special bank registers which might be used to select
> the correct clock or the right mode for Media Indepent Interface controllers.
> Sometimes, it is also required to activate vcc regulators in the right order to supply
> the ethernet controller at the right time. This patch is an architecture refactoring
> of the arc-emac device driver. it adds a new software design which allows to add specific
> platform glue layer. Each platform has now its own module which performs custom initialization
> and remove for the target and then calls to the core driver.
Please restrict the changelog line width to something like 70 characters
> diff --git a/drivers/net/ethernet/arc/Kconfig b/drivers/net/ethernet/arc/Kconfig
> index 514c57f..e193826 100644
> --- a/drivers/net/ethernet/arc/Kconfig
> +++ b/drivers/net/ethernet/arc/Kconfig
> @@ -17,12 +17,16 @@ config NET_VENDOR_ARC
>
> if NET_VENDOR_ARC
>
> -config ARC_EMAC
> - tristate "ARC EMAC support"
> +config ARC_EMAC_CORE
> + bool
This should be 'tristate', so you can build it as a loadable module
when ARC_EMAC is also a module. Kconfig will ensure it is set to 'y'
if any other built-in driver selects it, or to 'm' if it is selected
only by drivers that are also modules.
> select MII
> select PHYLIB
> depends on OF_IRQ
> depends on OF_NET
> +
> +config ARC_EMAC
> + tristate "ARC EMAC support"
> + select ARC_EMAC_CORE
The 'depends on' lines need to be moved below, otherwise you can still
enable ARC_EMAC if OF_IRQ and OF_NET are disabled.
Arnd
prev parent reply other threads:[~2014-08-26 9:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-26 9:23 [PATCH v3 1/3] ethernet: arc: remove use of 'struct platform_device' Romain Perier
2014-08-26 9:23 ` [PATCH v3 2/3] ethernet: arc: mdio refactoring for future specific SoC glue layer devicetree bindings addition Romain Perier
2014-08-26 9:23 ` [PATCH v3 3/3] ethernet: arc: Add support for specific SoC glue layer device tree bindings Romain Perier
2014-08-26 9:26 ` PERIER Romain
2014-08-26 9:44 ` Arnd Bergmann [this message]
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=6043486.sQSNjC9EMf@wuerfel \
--to=arnd@arndb.de \
--cc=b.galvani@gmail.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=f.fainelli@gmail.com \
--cc=heiko@sntech.de \
--cc=netdev@vger.kernel.org \
--cc=romain.perier@gmail.com \
--cc=tklauser@distanz.ch \
--cc=yongjun_wei@trendmicro.com.cn \
/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