Subject: Re: [PATCH v4] net: ethernet: mtk_eth_soc: avoid writing to ESW registers on MT7628

From: Daniel Golle <[email-masked]>
Date: Thu, 26 Feb 2026 16:06:00 +0000

On Thu, Feb 26, 2026 at 03:45:18PM +0000, Joris Vaisvila wrote:
> 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 <[email-masked]>

Reviewed-by: Daniel Golle <[email-masked]>

Cc: Stefan Roese <[email-masked]>