Skip to content

net: phy: add and use phy_check_downshift

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 Latest3 patches 1 replyIn review
  2. v13 patches 12 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: phy: add and use phy_check_downshiftdrivers/net/phy/phy-core.c drivers/net/phy/phy.c include/linux/phy.h+44 -10 replies
2/3net: phy: marvell: remove downshift warning now that phylib takes caredrivers/net/phy/marvell.c+0 -240 replies
3/3net: phy: aquantia: remove downshift warning now that phylib takes caredrivers/net/phy/aquantia_main.c+1 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net-next v2 0/3] net: phy: add and use phy_check_downshift

So far PHY drivers have to check whether a downshift occurred to be able to notify the user. To make life of drivers authors a little bit easier move the downshift notification to phylib. phy_check_downshift() compares the highest mutually advertised speed with the actual value of phydev->speed (typically read by the PHY driver from a vendor-specific register) to detect a downshift.

v2: Add downshift hint to phy_print_status().

Heiner Kallweit (3):
net: phy: add and use phy_check_downshift
net: phy: marvell: remove downshift warning now that phylib takes care
net: phy: aquantia: remove downshift warning now that phylib takes
care

 drivers/net/phy/aquantia_main.c | 25 +---------------------
 drivers/net/phy/marvell.c       | 24 ---------------------
 drivers/net/phy/phy-core.c      | 38 +++++++++++++++++++++++++++++++++
 drivers/net/phy/phy.c           |  4 +++-
 include/linux/phy.h             |  3 +++
 5 files changed, 45 insertions(+), 49 deletions(-)
Signature · 1 line
2.25.2