Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937454AbdIZVTb (ORCPT ); Tue, 26 Sep 2017 17:19:31 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:41162 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937219AbdIZVTZ (ORCPT ); Tue, 26 Sep 2017 17:19:25 -0400 From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Andrew Lunn , Vivien Didelot Subject: [PATCH net-next 0/5] net: dsa: use generic slave phydev Date: Tue, 26 Sep 2017 17:15:30 -0400 Message-Id: <20170926211535.21273-1-vivien.didelot@savoirfairelinux.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 730 Lines: 21 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. 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(-) -- 2.14.1