Skip to content

net: phy: use generic PHY ability readers if callback get_features isn't set

Heiner Kallweit netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- adjust a comment in patch 1 to match the code

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: phy: allow a PHY driver to define neither features nor get_featuresdrivers/net/phy/phy_device.c+12 -71 reply
2/2net: phy: realtek: remove setting callback get_features and use phylib fallbackdrivers/net/phy/realtek.c+0 -101 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndrew Lunn
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/2] net: phy: use generic PHY ability readers if callback get_features isn't set

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(-)
Signature · 1 line
2.21.0