mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
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
|
||
|
@@ -180,6 +180,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;
|