]> git.ipfire.org Git - thirdparty/openwrt.git/commit
mediatek: fix 2.5G PHY LED polarity for MT7987 21200/head
authorChukun Pan <amadeus@jmu.edu.cn>
Fri, 5 Dec 2025 12:16:02 +0000 (20:16 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 9 Jan 2026 12:59:54 +0000 (12:59 +0000)
commitb5195cd473a9eb622073709e3a32ea51770095eb
treea774c784cfc3b4963353fa17ec8a09edb1041659
parent0827720e04529a2d47a50009c33ca96af8652cd7
mediatek: fix 2.5G PHY LED polarity for MT7987

The patch that adds MT7987 support to the mtk-2p5ge
driver does the following:

case MTK_2P5GPHY_ID_MT7987:
phy_clear_bits_mmd MTK_PHY_LED_ON_POLARITY
case MTK_2P5GPHY_ID_MT7988:
phy_set_bits_mmd.. MTK_PHY_LED_ON_POLARITY

phy_set_bits_mmd... MTK_PHY_LED_ON_POLARITY | xxx

This clearly resulted in the LED polarity of the 2.5G PHY
on the MT7987 being reversed. Remove redundant MMD operations
to fix the 2.5G PHY LED error on Bananapi BPi-R4 Lite.

Fixes: d62fc50f ("mediatek: import patches from SDK to support MT7987 Ethernet")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
target/linux/mediatek/patches-6.12/752-net-phy-mediatek-i2p5g-add-support-for-mt7987.patch