[PATCH net-next v4 0/4] net: phy: micrel: Add support for lan8842

From: Horatiu Vultur
Date: Thu Aug 14 2025 - 04:34:42 EST


Add support for LAN8842 which supports industry-standard SGMII.
While add this the first 3 patches in the series cleans more the
driver, they should not introduce any functional changes.

v3->v4:
- add missing patch, the first patch was drop by mistake in previous
version
- update lanphy_modify_page_reg to print err in readable form and outside
of lock

v2->v3:
- add better defines for page numbers
- fix the statis->tx_errors, it was reading the rx_errors by mistake
- update lanphy_modify_page_reg to keep lock over all transactions

v1->v2:
- add the first 3 patches to clean the driver
- drop fast link failure support
- implement reading the statistics in the new way

Horatiu Vultur (4):
net: phy: micrel: Start using PHY_ID_MATCH_MODEL
net: phy: micrel: Introduce lanphy_modify_page_reg
net: phy: micrel: Replace hardcoded pages with defines
net: phy: micrel: Add support for lan8842

drivers/net/phy/micrel.c | 780 ++++++++++++++++++++++++++-----------
include/linux/micrel_phy.h | 1 +
2 files changed, 549 insertions(+), 232 deletions(-)

--
2.34.1