mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
e504fdae4e
Add pending patches from Alexander 'lynxis' Couzens which are required for RealTek NBase-T PHYs or SFP+ cages to work when connected to the SGMII interface provided by recent MediaTek SoCs [1]. The patches for MT753x fix link speed limitation on CPU ports observed by many users which is due to reset being carried out wrongly [2]. [1]: https://patchwork.kernel.org/project/netdevbpf/list/?series=669488&state=* [2]: https://patchwork.kernel.org/project/netdevbpf/list/?series=669486&state=* Signed-off-by: Daniel Golle <daniel@makrotopia.org>
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;
|