]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: stmmac: mdio: clean up c22/c45 accessor split
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 27 Aug 2025 13:27:47 +0000 (14:27 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Aug 2025 23:46:36 +0000 (16:46 -0700)
commit24eb86a8170f129725b56c8a359089ce18ad6d6f
treee6c9a11879d7be1bbbfcb74ffcb670e4354b13b0
parent5309dbc95b02485fb76d760fe471bb3b60362f1f
net: stmmac: mdio: clean up c22/c45 accessor split

The C45 accessors were setting the GR (register number) field twice,
once with the 16-bit register address truncated to five bits, and
then overwritten with the C45 devad. This is harmless since the field
was being cleared prior to being updated with the C45 devad, except
for the extra work.

Remove the redundant code.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/E1urGBn-00000000DCH-3swS@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c