Skip to content

Commit af57965

Browse files
committed
net: phy: mtk-2p5ge: fix crash because of missing callbacks
commit 5e3aae2 2025-08-27 net: phy: mtk-2p5ge: Add LED support for MT7988 introduces new callbacks which crash kernel if missing Unable to handle kernel execute from non-executable memory at virtual address 0000000000000000
1 parent d00d81e commit af57965

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/net/phy/mediatek/mtk-2p5ge.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,11 @@ static struct phy_driver mtk_2p5gephy_driver[] = {
724724
.resume = genphy_resume,
725725
.read_page = mtk_phy_read_page,
726726
.write_page = mtk_phy_write_page,
727+
.led_blink_set = mt798x_2p5ge_phy_led_blink_set,
728+
.led_brightness_set = mt798x_2p5ge_phy_led_brightness_set,
729+
.led_hw_is_supported = mt798x_2p5ge_phy_led_hw_is_supported,
730+
.led_hw_control_get = mt798x_2p5ge_phy_led_hw_control_get,
731+
.led_hw_control_set = mt798x_2p5ge_phy_led_hw_control_set,
727732
},
728733
{
729734
PHY_ID_MATCH_MODEL(MTK_2P5GPHY_ID_MT7988),

0 commit comments

Comments
 (0)