netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Florian Fainelli <f.fainelli@gmail.com>, netdev@vger.kernel.org
Cc: davem@davemloft.net, vivien.didelot@savoirfairelinux.com,
	jerome.oufella@savoirfairelinux.com, andrew@lunn.ch,
	cphealy@gmail.com, mathieu@codeaurora.org, jonasj76@gmail.com,
	andrey.volkov@nexvision.fr, Chris.Packham@alliedtelesis.co.nz
Subject: Re: [PATCH net-next 0/2 v2] net: dsa: remove restriction on platform_device
Date: Mon, 09 Mar 2015 22:34:45 -0700	[thread overview]
Message-ID: <54FE8275.8060703@roeck-us.net> (raw)
In-Reply-To: <1425936681-31910-1-git-send-email-f.fainelli@gmail.com>

On 03/09/2015 02:31 PM, Florian Fainelli wrote:
> Hi all,
>
> This patch series removes the restriction in DSA to operate exclusively with
> platform_device Ethernet MAC drivers when using Device Tree. This basically
> allows arbitrary Ethernet MAC drivers to be used now in conjunction with
> Device Tree.
>
> The reason was that DSA was using a of_find_device_by_node() which limits
> the device_node to device pointer search exclusively to platform_device,
> in our case, we are interested in doing a "class" research and lookup the
> net_device.
>
> Thanks to Chris Packham for testing this on his platform.
>
> Changes in v2:
>
> - fix build for !CONFIG_OF_NET
>
> Florian Fainelli (2):
>    net: core: add of_find_net_device_by_node()
>    net: dsa: utilize of_find_net_device_by_node
>
>   include/linux/of_net.h |  8 ++++++++
>   include/net/dsa.h      |  1 +
>   net/core/net-sysfs.c   | 25 +++++++++++++++++++++++++
>   net/dsa/dsa.c          | 16 +++++++++++-----
>   4 files changed, 45 insertions(+), 5 deletions(-)
>
Both patches building (and working) fine with !CONFIG_OF_NET.

Guenter

      parent reply	other threads:[~2015-03-10  5:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-09 21:31 [PATCH net-next 0/2 v2] net: dsa: remove restriction on platform_device Florian Fainelli
2015-03-09 21:31 ` [PATCH net-next v2 1/2] net: core: add of_find_net_device_by_node() Florian Fainelli
2015-03-09 21:31 ` [PATCH net-next v2 2/2] net: dsa: utilize of_find_net_device_by_node Florian Fainelli
2015-03-10  3:50 ` [PATCH net-next 0/2 v2] net: dsa: remove restriction on platform_device David Miller
2015-03-10  5:34 ` Guenter Roeck [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=54FE8275.8060703@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=Chris.Packham@alliedtelesis.co.nz \
    --cc=andrew@lunn.ch \
    --cc=andrey.volkov@nexvision.fr \
    --cc=cphealy@gmail.com \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=jerome.oufella@savoirfairelinux.com \
    --cc=jonasj76@gmail.com \
    --cc=mathieu@codeaurora.org \
    --cc=netdev@vger.kernel.org \
    --cc=vivien.didelot@savoirfairelinux.com \
    /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).