netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/2] net: phy: use generic PHY ability readers if callback get_features isn't set
@ 2019-04-03 21:13 Heiner Kallweit
  2019-04-03 21:14 ` [PATCH net-next v2 1/2] net: phy: allow a PHY driver to define neither features nor get_features Heiner Kallweit
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Heiner Kallweit @ 2019-04-03 21:13 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli, David Miller; +Cc: netdev@vger.kernel.org

Meanwhile we have generic functions for reading the abilities of
Clause 22 / 45 PHY's. This allows to use them as fallback in case
callback get_features isn't set. Benefit is the reduction of
boilerplate code in PHY drivers.

v2:
- adjust a comment in patch 1 to match the code

Heiner Kallweit (2):
  net: phy: allow a PHY driver to define neither features nor
    get_features
  net: phy: realtek: remove setting callback get_features and use phylib
    default

 drivers/net/phy/phy_device.c | 19 ++++++++++++-------
 drivers/net/phy/realtek.c    | 10 ----------
 2 files changed, 12 insertions(+), 17 deletions(-)

-- 
2.21.0


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

end of thread, other threads:[~2019-04-05  0:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-03 21:13 [PATCH net-next v2 0/2] net: phy: use generic PHY ability readers if callback get_features isn't set Heiner Kallweit
2019-04-03 21:14 ` [PATCH net-next v2 1/2] net: phy: allow a PHY driver to define neither features nor get_features Heiner Kallweit
2019-04-03 21:25   ` Andrew Lunn
2019-04-03 21:15 ` [PATCH net-next v2 2/2] net: phy: realtek: remove setting callback get_features and use phylib fallback Heiner Kallweit
2019-04-03 21:25   ` Andrew Lunn
2019-04-05  0:55 ` [PATCH net-next v2 0/2] net: phy: use generic PHY ability readers if callback get_features isn't set 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).