generic: 6.6: net: ethernet: mediatek: Allow gaps in MAC allocation
authorDaniel Golle <daniel@makrotopia.org>
Mon, 1 Jul 2024 19:37:58 +0000 (20:37 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 1 Jul 2024 20:04:41 +0000 (21:04 +0100)
commit8ef4d785829241e3a6f95c896de210fd5d3f073b
tree7d6c5d23c735d5be4f7d29ab8402a9886bab4aff
parent2bf2ee7be899565b9c3ab75aa8c068e7d339f103
generic: 6.6: net: ethernet: mediatek: Allow gaps in MAC allocation

Some devices with MediaTek SoCs don't use the first but only the second
MAC in the chip. Especially with MT7981 which got a built-in 1GE PHY
connected to the second MAC this is quite common.
Make sure to reset and enable PSE also in those cases by skipping gaps
using 'continue' instead of aborting the loop using 'break'.

Fixes: 75081235b8 ("generic: 6.6: (re-)add support multiple PPE to mtk_eth_soc")
Reported-by: Daniel Suchy <danny@danysek.cz>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/generic/pending-6.6/734-net-ethernet-mediatek-Allow-gaps-in-MAC-allocation.patch [new file with mode: 0644]