Thomas Schaefer 9373e5aecf net: fsl_enetc: fix imdio register calculation
With commit cc4e8af2c552, fsl_enetc register accessors have been split to
handle different register offsets on different SoCs. However, for
internal MDIO register calculation, only ENETC_PM_IMDIO_BASE was fixed
without adding the SoC specific MAC register offset.

As a result, the network support for the Kontron SMARC-sAL28 and
probably other boards based on the LS1028A CPU is broken.

Add the SoC specific MAC register offset to calculation of imdio.priv to
fix this.

Fixes: cc4e8af2c552 ("net: fsl_enetc: Split register accessors")
Signed-off-by: Thomas Schaefer <thomas.schaefer@kontron.com>
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Reviewed-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com> # LS1028A
Tested-by: Tim Harvey <tharvey@gateworks.com> # imx95_19x19_evk
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Alice Guo <alice.guo@nxp.com>
2025-05-12 18:43:19 -03:00
..
2021-09-28 18:50:56 +03:00
2025-05-05 14:16:50 -06:00
2025-05-05 14:16:50 -06:00
2022-12-07 16:04:17 -05:00
2025-05-04 20:25:03 +02:00
2022-11-28 10:25:17 -05:00
2024-07-22 10:53:05 -06:00
2022-12-22 10:31:48 -05:00
2025-05-04 20:25:03 +02:00
2024-01-29 22:35:02 -05:00