mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			743 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			23 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;
 |