layerscape: add patches-5.4
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 701-net-0390-drivers-net-phylink-in-band-AN-for-USXGMII.patch
1 From a1d37fce23d69a51a299b848d0a5700d64e6db4e Mon Sep 17 00:00:00 2001
2 From: Alex Marginean <alexandru.marginean@nxp.com>
3 Date: Tue, 7 Jan 2020 16:48:05 +0200
4 Subject: [PATCH] drivers: net: phylink: in-band AN for USXGMII
5
6 USXGMII supports passing link information in-band between PHY and MAC PCS,
7 add it to the list of protocls that support in-band AN mode.
8
9 TODO:
10 Add 2500baseT, 5GbaseT, 10GbaseT.
11
12 Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
13 ---
14 drivers/net/phy/phylink.c | 10 ++++++++++
15 1 file changed, 10 insertions(+)
16
17 --- a/drivers/net/phy/phylink.c
18 +++ b/drivers/net/phy/phylink.c
19 @@ -300,6 +300,16 @@ static int phylink_parse_mode(struct phy
20 phylink_set(pl->supported, 2500baseX_Full);
21 break;
22
23 + case PHY_INTERFACE_MODE_USXGMII:
24 + phylink_set(pl->supported, 10baseT_Half);
25 + phylink_set(pl->supported, 10baseT_Full);
26 + phylink_set(pl->supported, 100baseT_Half);
27 + phylink_set(pl->supported, 100baseT_Full);
28 + phylink_set(pl->supported, 1000baseT_Half);
29 + phylink_set(pl->supported, 1000baseT_Full);
30 + phylink_set(pl->supported, 2500baseX_Full);
31 + break;
32 +
33 case PHY_INTERFACE_MODE_10GKR:
34 phylink_set(pl->supported, 10baseT_Half);
35 phylink_set(pl->supported, 10baseT_Full);