]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ethernet: mtk_eth_soc: avoid writing to ESW registers on MT7628
authorJoris Vaisvila <joey@tinyisr.com>
Thu, 26 Feb 2026 15:45:18 +0000 (15:45 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 02:36:21 +0000 (18:36 -0800)
commit9a04d3b2f0708a9e5e1f731bafb69b040bb934a0
tree5a2b76a8f53dd5e986a9f80347ca213fa7deebce
parentda89f2e3121531804f45abd33db05b432e42606c
net: ethernet: mtk_eth_soc: avoid writing to ESW registers on MT7628

The MT7628 has a fixed-link PHY and does not expose MAC control
registers. Writes to these registers only corrupt the ESW VLAN
configuration.

This patch explicitly registers no-op phylink_mac_ops for MT7628, as
after removing the invalid register accesses, the existing
phylink_mac_ops effectively become no-ops.

This code was introduced by commit 296c9120752b
("net: ethernet: mediatek: Add MT7628/88 SoC support")

Signed-off-by: Joris Vaisvila <joey@tinyisr.com>
Reviewed-by: Daniel Golle <daniel@makrotpia.org>
Reviewed-by: Stefan Roese <stefan.roese@mailbox.org>
Link: https://patch.msgid.link/20260226154547.68553-1-joey@tinyisr.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_eth_soc.c