[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1425936681-31910-1-git-send-email-f.fainelli@gmail.com>
Date: Mon, 9 Mar 2015 14:31:19 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, Florian Fainelli <f.fainelli@...il.com>,
vivien.didelot@...oirfairelinux.com,
jerome.oufella@...oirfairelinux.com, linux@...ck-us.net,
andrew@...n.ch, cphealy@...il.com, mathieu@...eaurora.org,
jonasj76@...il.com, andrey.volkov@...vision.fr,
Chris.Packham@...iedtelesis.co.nz
Subject: [PATCH net-next 0/2 v2] net: dsa: remove restriction on platform_device
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists