layerscape: add patches-5.4
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 701-net-0374-Revert-net-phylink-call-mac_an_restart-for-SGMII-QSG.patch
1 From d3a532021976d98bfc9e3dac18a17abccf6eb567 Mon Sep 17 00:00:00 2001
2 From: Vladimir Oltean <vladimir.oltean@nxp.com>
3 Date: Mon, 6 Jan 2020 14:31:42 +0200
4 Subject: [PATCH] Revert "net: phylink: call mac_an_restart for SGMII/QSGMII
5 inband interfaces too"
6
7 This reverts commit 57fe15baac62dad00817e3359cefc123e24f10a2.
8
9 Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
10 ---
11 drivers/net/phy/phylink.c | 4 +---
12 1 file changed, 1 insertion(+), 3 deletions(-)
13
14 --- a/drivers/net/phy/phylink.c
15 +++ b/drivers/net/phy/phylink.c
16 @@ -360,9 +360,7 @@ static void phylink_mac_config_up(struct
17 static void phylink_mac_an_restart(struct phylink *pl)
18 {
19 if (pl->link_config.an_enabled &&
20 - (phy_interface_mode_is_8023z(pl->link_config.interface) ||
21 - pl->link_config.interface == PHY_INTERFACE_MODE_SGMII ||
22 - pl->link_config.interface == PHY_INTERFACE_MODE_QSGMII))
23 + phy_interface_mode_is_8023z(pl->link_config.interface))
24 pl->ops->mac_an_restart(pl->config);
25 }
26