Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032753AbdIZXzq (ORCPT ); Tue, 26 Sep 2017 19:55:46 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:36201 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966844AbdIZXzo (ORCPT ); Tue, 26 Sep 2017 19:55:44 -0400 X-Google-Smtp-Source: AOwi7QDfQQh92QKHPwqPrmaJCO6rmpqzdnch3n1OjEilr2LFOBJb2/oLvveZiCeqVzzr7L5GwONoXw== Subject: Re: [PATCH net-next 0/5] net: dsa: use generic slave phydev To: Vivien Didelot , netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Andrew Lunn References: <20170926211535.21273-1-vivien.didelot@savoirfairelinux.com> From: Florian Fainelli Message-ID: <28fd7053-eb5a-730e-b2db-33df44d6a3b6@gmail.com> Date: Tue, 26 Sep 2017 16:55:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170926211535.21273-1-vivien.didelot@savoirfairelinux.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1126 Lines: 37 On 09/26/2017 02:15 PM, Vivien Didelot wrote: > DSA currently stores a phy_device pointer in each slave private > structure. This requires to implement our own ethtool ksettings > accessors and such. > > This patchset removes the private phy_device in favor of the one > provided in the net_device structure, and thus allows us to use the > generic phy_ethtool_* functions. For this series: Tested-by: Florian Fainelli On bcm_sf2 (7445 and 7278) along with the externally attached BCM53125 switch that needs the special MDIO read/write divert. We properly attach to the right PHY devices in all cases. Also tested unbind/bind, working correctly. Thanks! > > Vivien Didelot (5): > net: dsa: return -ENODEV is there is no slave PHY > net: dsa: use slave device phydev > net: dsa: use phy_ethtool_get_link_ksettings > net: dsa: use phy_ethtool_set_link_ksettings > net: dsa: use phy_ethtool_nway_reset > > net/dsa/dsa_priv.h | 1 - > net/dsa/slave.c | 143 +++++++++++++++++++---------------------------------- > 2 files changed, 52 insertions(+), 92 deletions(-) > -- Florian