mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 07:22:33 +00:00
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
|
From 2106be4fdf3223d9c5bd485e6ef094139e3197ba Mon Sep 17 00:00:00 2001
|
||
|
From: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
|
||
|
Date: Sun, 12 Dec 2021 13:01:21 +0000
|
||
|
Subject: [PATCH] net: mvneta: mark as a legacy_pre_march2020 driver
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
mvneta provides mac_an_restart and mac_pcs_get_state methods, so needs
|
||
|
to be marked as a legacy driver. Marek spotted that mvneta had stopped
|
||
|
working in 2500base-X mode - thanks for reporting.
|
||
|
|
||
|
Reported-by: Marek Behún <kabel@kernel.org>
|
||
|
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
|
||
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
||
|
---
|
||
|
drivers/net/ethernet/marvell/mvneta.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
--- a/drivers/net/ethernet/marvell/mvneta.c
|
||
|
+++ b/drivers/net/ethernet/marvell/mvneta.c
|
||
|
@@ -5138,6 +5138,7 @@ static int mvneta_probe(struct platform_
|
||
|
|
||
|
pp->phylink_config.dev = &dev->dev;
|
||
|
pp->phylink_config.type = PHYLINK_NETDEV;
|
||
|
+ pp->phylink_config.legacy_pre_march2020 = true;
|
||
|
pp->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 |
|
||
|
MAC_100 | MAC_1000FD | MAC_2500FD;
|
||
|
|