31717565bf175c7c661ec672d5217ebe483e50ad
[openwrt/staging/blogic.git] /
1 From 2106be4fdf3223d9c5bd485e6ef094139e3197ba Mon Sep 17 00:00:00 2001
2 From: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
3 Date: Sun, 12 Dec 2021 13:01:21 +0000
4 Subject: [PATCH] net: mvneta: mark as a legacy_pre_march2020 driver
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 mvneta provides mac_an_restart and mac_pcs_get_state methods, so needs
10 to be marked as a legacy driver. Marek spotted that mvneta had stopped
11 working in 2500base-X mode - thanks for reporting.
12
13 Reported-by: Marek BehĂșn <kabel@kernel.org>
14 Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
15 Signed-off-by: David S. Miller <davem@davemloft.net>
16 ---
17 drivers/net/ethernet/marvell/mvneta.c | 1 +
18 1 file changed, 1 insertion(+)
19
20 --- a/drivers/net/ethernet/marvell/mvneta.c
21 +++ b/drivers/net/ethernet/marvell/mvneta.c
22 @@ -5138,6 +5138,7 @@ static int mvneta_probe(struct platform_
23
24 pp->phylink_config.dev = &dev->dev;
25 pp->phylink_config.type = PHYLINK_NETDEV;
26 + pp->phylink_config.legacy_pre_march2020 = true;
27 pp->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_10 |
28 MAC_100 | MAC_1000FD | MAC_2500FD;
29