From: Florian Fainelli Subject: [PATCH net-next 0/2] net: dsa: remove restriction on platform_device Date: Mon, 9 Mar 2015 12:02:28 -0700 Message-ID: <1425927750-23901-1-git-send-email-f.fainelli@gmail.com> Cc: davem@davemloft.net, Florian Fainelli , vivien.didelot@savoirfairelinux.com, jerome.oufella@savoirfairelinux.com, linux@roeck-us.net, andrew@lunn.ch, cphealy@gmail.com, mathieu@codeaurora.org, jonasj76@gmail.com, andrey.volkov@nexvision.fr, Chris.Packham@alliedtelesis.co.nz To: netdev@vger.kernel.org Return-path: Received: from mail-pd0-f176.google.com ([209.85.192.176]:36995 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752110AbbCITDR (ORCPT ); Mon, 9 Mar 2015 15:03:17 -0400 Received: by pdbnh10 with SMTP id nh10so71070976pdb.4 for ; Mon, 09 Mar 2015 12:03:16 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: 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. 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