]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: s32: use a syscon for S32_PHY_INTF_SEL_RGMII
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 30 Jan 2026 13:19:41 +0000 (16:19 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Feb 2026 02:17:28 +0000 (18:17 -0800)
commitb0eeeb1b70c0b2e1118fec7c28ffb0e21fe98688
tree8558d13e7b5a4c9d794243e3840f399764817808
parentf70f835fbd84921b096ac9d3c060f23f4fa1f395
net: stmmac: s32: use a syscon for S32_PHY_INTF_SEL_RGMII

On the s32 chipsets the GMAC_0_CTRL_STS register is in GPR region.
Originally, accessing this register was done in a sort of ad-hoc way,
but we want to use the syscon interface to do it.

This is a little bit ugly because we have to maintain backwards
compatibility to the old device trees so we have to support both ways
to access this register.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jan Petrous (OSS) <jan.petrous@oss.nxp.com>
Link: https://patch.msgid.link/b6b60d03344d070b2b4db7f0f00527f166e594e0.1769764941.git.dan.carpenter@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c