aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/patches-5.4/701-net-0325-net-phy-add-10G-fixed-link-support.patch
blob: a227baf1f592a6729cccfe6335909110b804c36a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From c8d3576df41025b341eb767168914990598a0caa Mon Sep 17 00:00:00 2001
From: Camelia Groza <camelia.groza@nxp.com>
Date: Tue, 22 Aug 2017 18:35:11 +0300
Subject: [PATCH] net: phy: add 10G fixed-link support

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
---
 drivers/net/phy/swphy.c | 1 +
 1 file changed, 1 insertion(+)

--- a/drivers/net/phy/swphy.c
+++ b/drivers/net/phy/swphy.c
@@ -71,6 +71,7 @@ static const struct swmii_regs duplex[]
 static int swphy_decode_speed(int speed)
 {
 	switch (speed) {
+	case 10000:
 	case 1000:
 		return SWMII_SPEED_1000;
 	case 100: