net: mediatek: mt7531/7988: fix broken PHY turn ON/OFF
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 20 Sep 2025 16:09:41 +0000 (18:09 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Wed, 22 Oct 2025 09:16:10 +0000 (11:16 +0200)
commit9b2e1079e7db35155710a401eb52007abe449ad7
tree9857e9749fc98f7354486dda8bc69d6001d682ef
parentefaadc02b736da82ef9868d11960a63faae9b3fe
net: mediatek: mt7531/7988: fix broken PHY turn ON/OFF

The PHY for MT7531/MT7988 are never actully turned ON/OFF for the
affected PHY as we are read/writing to the wrong PHY address.

This is caused by the fact that we use the MT753X_PHY_ADDR macro 2
times offsetting the address multiple times.

One in the _setup() function and one in the mt7531_mii_read/write.

Drop the additional usage of MT753X_PHY_ADDR in setup() to correctly
set the PHY.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
drivers/net/mtk_eth/mt7531.c
drivers/net/mtk_eth/mt7988.c