Skip to content

net: phy: icplus: cleanups and new features

Michael Walle lkml netdev 5 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 0 repliesApplied 9/9
  2. v39 patches 3 repliesSuperseded
  3. v2 posting 2/20 of 9 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/29 patches1 replySuperseded
v19 patches21 repliesSuperseded

Patches in v4 All 9 applied

#Subject and filesSizeRepliesApplied
1/9net: phy: icplus: use PHY_ID_MATCH_MODEL() macrodrivers/net/phy/icplus.c+10 -90 repliesApplied
2/9net: phy: icplus: use PHY_ID_MATCH_EXACT() for IP101A/Gdrivers/net/phy/icplus.c+2 -20 repliesApplied
3/9net: phy: icplus: drop address operator for functionsdrivers/net/phy/icplus.c+5 -50 repliesApplied
4/9net: phy: icplus: use the .soft_reset() of the phy-coredrivers/net/phy/icplus.c+2 -300 repliesApplied
5/9net: phy: icplus: split IP101A/G driverdrivers/net/phy/icplus.c+66 -30 repliesApplied
6/9net: phy: icplus: don't set APS_EN bit on IP101Gdrivers/net/phy/icplus.c+20 -70 repliesApplied
7/9net: phy: icplus: fix paged register accessdrivers/net/phy/icplus.c+54 -130 repliesApplied
8/9net: phy: icplus: add PHY counter for IP101Gdrivers/net/phy/icplus.c+75 -00 repliesApplied
9/9net: phy: icplus: add MDI/MDIX support for IP101A/Gdrivers/net/phy/icplus.c+97 -00 repliesApplied

Reviews trailers per patch

7 of 9 patches have a Reviewed-by or Acked-by.

PatchAndrew Lunn
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9
6/9R-b
7/9
8/9R-b
9/9R-b

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

Read the v4 thread

Cover letter [PATCH net-next v4 0/9] net: phy: icplus: cleanups and new features

Cleanup the PHY drivers for IPplus devices and add PHY counters and MDIX support for the IP101A/G.

Patch 5 adds a model detection based on the behavior of the PHY. Unfortunately, the IP101A shares the PHY ID with the IP101G. But the latter provides more features. Try to detect the newer model by accessing the page selection register. If it is writeable, it is assumed, that it is a IP101G.

With this detection in place, we can now access registers >= 16 in a correct way on the IP101G; that is by first selecting the correct page. This might previouly worked, because no one ever set another active page before booting linux.

The last two patches add the new features.

Michael Walle (9):
net: phy: icplus: use PHY_ID_MATCH_MODEL() macro
net: phy: icplus: use PHY_ID_MATCH_EXACT() for IP101A/G
net: phy: icplus: drop address operator for functions
net: phy: icplus: use the .soft_reset() of the phy-core
net: phy: icplus: split IP101A/G driver
net: phy: icplus: don't set APS_EN bit on IP101G
net: phy: icplus: fix paged register access
net: phy: icplus: add PHY counter for IP101G
net: phy: icplus: add MDI/MDIX support for IP101A/G

 drivers/net/phy/icplus.c | 384 ++++++++++++++++++++++++++++++++-------
 1 file changed, 323 insertions(+), 61 deletions(-)
Signature · 1 line
2.20.1