1d8f1f44806b76e1b05dc3711489963737237dfd
[openwrt/staging/ldir.git] /
1 From a40da00390f47fa698ef9ef9a2c82d427f6f8aa6 Mon Sep 17 00:00:00 2001
2 From: Alex Marginean <alexandru.marginean@nxp.com>
3 Date: Tue, 7 Jan 2020 16:44:20 +0200
4 Subject: [PATCH] drivers: net: felix: set link based on BMSR, not LPA
5
6 At least some PHYs don't advertise link up during system side AN, rely on
7 local indication from internal PHYs for link state.
8
9 Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
10 ---
11 drivers/net/dsa/ocelot/felix_vsc9959.c | 1 -
12 1 file changed, 1 deletion(-)
13
14 --- a/drivers/net/dsa/ocelot/felix_vsc9959.c
15 +++ b/drivers/net/dsa/ocelot/felix_vsc9959.c
16 @@ -896,7 +896,6 @@ static void vsc9959_pcs_link_state_usxgm
17 break;
18 }
19
20 - pcs->link = USXGMII_LPA_LNKS(lpa);
21 if (USXGMII_LPA_DUPLEX(lpa))
22 pcs->duplex = DUPLEX_FULL;
23 else