]> Gentwo Git Trees - linux/.git/commit
net: enetc: update the base address of port MDIO registers for ENETC v4
authorWei Fang <wei.fang@nxp.com>
Wed, 19 Nov 2025 10:25:57 +0000 (18:25 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Nov 2025 01:44:48 +0000 (17:44 -0800)
commit10ba23a7f6cc4afbe7f1740b12b1ceb55fc57c00
treeaa49e1afa376527bebf2a28bc32cc38d19195849
parent50bfd9c06f0ff80e3ab6cfe6169d5ae2fe1afaa2
net: enetc: update the base address of port MDIO registers for ENETC v4

Each ENETC has a set of external MDIO registers to access its external
PHY based on its port EMDIO bus, these registers are used for MDIO bus
access, such as setting the PHY address, PHY register address and value,
read or write operations, C22 or C45 format, etc. The base address of
this set of registers has been modified in ENETC v4 and is different
from that in ENETC v1. So the base address needs to be updated so that
ENETC v4 can use port MDIO to manage its own external PHY.

Additionally, if ENETC has the PCS layer, it also has a set of internal
MDIO registers for managing its on-die PHY (PCS/Serdes). The base address
of this set of registers is also different from that of ENETC v1, so the
base address also needs to be updated so that ENETC v4 can support the
management of on-die PHY through the internal MDIO bus.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Link: https://patch.msgid.link/20251119102557.1041881-4-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc4_hw.h
drivers/net/ethernet/freescale/enetc/enetc_pf_common.c