mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
fbe2f7db86
All patches automatically rebased Build system: x86_64 Build-tested: bcm2711/RPi4B, mt7622/RT3200 Run-tested: bcm2711/RPi4B, mt7622/RT3200 Signed-off-by: John Audia <therealgraysky@proton.me>
24 lines
743 B
Diff
24 lines
743 B
Diff
From 95dcd0f223d7cab6e25bc19088016e5eb4ca1804 Mon Sep 17 00:00:00 2001
|
|
From: Alexander Couzens <lynxis@fe80.eu>
|
|
Date: Tue, 16 Aug 2022 00:22:11 +0200
|
|
Subject: [PATCH 10/10] mtk_sgmii: enable PCS polling to allow SFP work
|
|
|
|
Currently there is no IRQ handling (even the SGMII supports it).
|
|
Enable polling to support SFP ports.
|
|
|
|
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
|
|
---
|
|
drivers/net/ethernet/mediatek/mtk_sgmii.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/drivers/net/ethernet/mediatek/mtk_sgmii.c
|
|
+++ b/drivers/net/ethernet/mediatek/mtk_sgmii.c
|
|
@@ -182,6 +182,7 @@ int mtk_sgmii_init(struct mtk_sgmii *ss,
|
|
return PTR_ERR(ss->pcs[i].regmap);
|
|
|
|
ss->pcs[i].pcs.ops = &mtk_pcs_ops;
|
|
+ ss->pcs[i].pcs.poll = 1;
|
|
}
|
|
|
|
return 0;
|