]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: enetc: Convert 16-bit register reads to 32-bit for ENETC v4
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Fri, 30 Jan 2026 14:10:35 +0000 (16:10 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Feb 2026 02:11:52 +0000 (18:11 -0800)
commitc28d765ec5da160d3a48d0928528084cef97bf19
tree9c1849bd6406e139f9cce9c9171362bce3d42ddd
parent21d0fc95b5920ae8e69a2c0394bef82b8392bcc9
net: enetc: Convert 16-bit register reads to 32-bit for ENETC v4

It is not recommended to access the 32‑bit registers of this hardware IP
using lower‑width accessors (i.e. 16‑bit), and the only exception to
this rule was introduced in the initial ENETC v1 driver for the PMAR1
register, which holds the lower 16 bits of the primary MAC address of
an SI. Meanwhile, this exception has been replicated in the v4 driver
code as well.

Since LS1028 (the only SoC with ENETC v1) is not affected by this issue,
the current patch converts the 16‑bit reads from PMAR1 starting with
ENETC v4.

Fixes: 99100d0d9922 ("net: enetc: add preliminary support for i.MX95 ENETC PF")
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Reviewed-by: Wei Fang <wei.fang@nxp.com>
Link: https://patch.msgid.link/20260130141035.272471-5-claudiu.manoil@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc4_pf.c
drivers/net/ethernet/freescale/enetc/enetc_hw.h