]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: imx: fix iMX93 register definitions
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 4 Feb 2026 10:37:59 +0000 (10:37 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Feb 2026 17:25:44 +0000 (09:25 -0800)
commit7e7fcfb0798a038b31fa3825734b5194c46b3e86
tree61fcfd0cd1ed02a70fd4cc478b84b4a4b27c4240
parent85d05e28171240ae357a085dc689b91e0ff44f50
net: stmmac: imx: fix iMX93 register definitions

When looking at the iMX93 documentation, the definitions in the driver
do not correspond with the documentation, which makes the driver
confusing.

The driver, for example, re-uses a definition for bit 0 for two
different registers, where this bit have completely different purposes.

Fix this by renaming the second register, and adding a definition that
reflects the true purpose of bit 0 in the first register (EQOS enable.)

Replace MX93_GPR_ENET_QOS_INTF_MODE_MASK with MX93_GPR_ENET_QOS_ENABLE
and MX93_GPR_ENET_QOS_INTF_SEL_MASK as MX93_GPR_ENET_QOS_INTF_MODE_MASK
is not a register field.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vnaGl-00000007i9f-0ZMw@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c