netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] net: dsa: use generic slave phydev
@ 2017-09-26 21:15 Vivien Didelot
  2017-09-26 21:15 ` [PATCH net-next 1/5] net: dsa: return -ENODEV is there is no slave PHY Vivien Didelot
                   ` (6 more replies)
  0 siblings, 7 replies; 18+ messages in thread
From: Vivien Didelot @ 2017-09-26 21:15 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, kernel, David S. Miller, Florian Fainelli,
	Andrew Lunn, Vivien Didelot

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

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

end of thread, other threads:[~2017-09-27  3:06 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-26 21:15 [PATCH net-next 0/5] net: dsa: use generic slave phydev Vivien Didelot
2017-09-26 21:15 ` [PATCH net-next 1/5] net: dsa: return -ENODEV is there is no slave PHY Vivien Didelot
2017-09-26 21:49   ` Andrew Lunn
2017-09-26 21:59   ` Florian Fainelli
2017-09-26 21:15 ` [PATCH net-next 2/5] net: dsa: use slave device phydev Vivien Didelot
2017-09-26 21:56   ` Andrew Lunn
2017-09-26 23:54   ` Florian Fainelli
2017-09-26 21:15 ` [PATCH net-next 3/5] net: dsa: use phy_ethtool_get_link_ksettings Vivien Didelot
2017-09-26 21:57   ` Andrew Lunn
2017-09-26 22:00   ` Florian Fainelli
2017-09-26 21:15 ` [PATCH net-next 4/5] net: dsa: use phy_ethtool_set_link_ksettings Vivien Didelot
2017-09-26 21:57   ` Andrew Lunn
2017-09-26 22:05   ` Florian Fainelli
2017-09-26 21:15 ` [PATCH net-next 5/5] net: dsa: use phy_ethtool_nway_reset Vivien Didelot
2017-09-26 21:58   ` Andrew Lunn
2017-09-26 22:05   ` Florian Fainelli
2017-09-26 23:55 ` [PATCH net-next 0/5] net: dsa: use generic slave phydev Florian Fainelli
2017-09-27  3:06 ` David Miller

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