]> git.ipfire.org Git - thirdparty/linux.git/commit
net: enetc: do not access non-existent registers on pseudo MAC
authorWei Fang <wei.fang@nxp.com>
Tue, 24 Mar 2026 06:21:21 +0000 (14:21 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 27 Mar 2026 03:19:06 +0000 (20:19 -0700)
commitf2df9567b123145a07ee4ea7440e233f5d0232cc
tree6e61e88af609da761e77d93cceee900c74120fc8
parent2725d84efe2582c0a4b907e74a689d26b2dbd382
net: enetc: do not access non-existent registers on pseudo MAC

The ENETC4_PM_IEVENT and ENETC4_PM_CMD_CFG registers do not exist on the
ENETC pseudo MAC, so the driver should prevent from accessing them.

Fixes: 5175c1e4adca ("net: enetc: add basic support for the ENETC with pseudo MAC for i.MX94")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Tested-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260324062121.2745033-4-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc4_pf.c