netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2 v2] net: dsa: remove restriction on platform_device
@ 2015-03-09 21:31 Florian Fainelli
  2015-03-09 21:31 ` [PATCH net-next v2 1/2] net: core: add of_find_net_device_by_node() Florian Fainelli
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Florian Fainelli @ 2015-03-09 21:31 UTC (permalink / raw)
  To: netdev
  Cc: davem, Florian Fainelli, vivien.didelot, jerome.oufella, linux,
	andrew, cphealy, mathieu, jonasj76, andrey.volkov, Chris.Packham

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(-)

-- 
2.1.0

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

end of thread, other threads:[~2015-03-10  5:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).