]> git.itanic.dy.fi Git - linux-stable/commit
net: ethernet: mtk_eth_soc: enable special tag when any MAC uses DSA
authorArınç ÜNAL <arinc.unal@arinc9.com>
Sun, 5 Feb 2023 17:53:31 +0000 (20:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2023 09:00:29 +0000 (09:00 +0000)
commit21386e692613702502f7c982d81e0dfa86d25cfd
tree8be691c66ad355cb43ab8ba740c07fe80335263c
parent9cec2aaffe969f2a3e18b5ec105fc20bb908e475
net: ethernet: mtk_eth_soc: enable special tag when any MAC uses DSA

The special tag is only enabled when the first MAC uses DSA. However, it
must be enabled when any MAC uses DSA. Change the check accordingly.

This fixes hardware DSA untagging not working on the second MAC of the
MT7621 and MT7623 SoCs, and likely other SoCs too. Therefore, remove the
check that disables hardware DSA untagging for the second MAC of the MT7621
and MT7623 SoCs.

Fixes: a1f47752fd62 ("net: ethernet: mtk_eth_soc: disable hardware DSA untagging for second MAC")
Co-developed-by: Richard van Schagen <richard@routerhints.com>
Signed-off-by: Richard van Schagen <richard@routerhints.com>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c