]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.15.17/net-hns3-add-asym-pause-support-to-phy-default-features.patch
Linux 4.14.95
[thirdparty/kernel/stable-queue.git] / releases / 4.15.17 / net-hns3-add-asym-pause-support-to-phy-default-features.patch
CommitLineData
72fc6108
GKH
1From foo@baz Mon Apr 9 10:16:32 CEST 2018
2From: Fuyun Liang <liangfuyun1@huawei.com>
3Date: Fri, 22 Dec 2017 12:21:53 +0800
4Subject: net: hns3: add Asym Pause support to phy default features
5
6From: Fuyun Liang <liangfuyun1@huawei.com>
7
8
9[ Upstream commit f16121c80c8ee4dab3c41363cb8b24f8d8eaf45f ]
10
11commit c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature
12initialization") adds default supported features for phy, but our hardware
13also supports Asym Pause. This patch adds Asym Pause support to phy
14default features to prevent Asym Pause can not be advertised when the phy
15negotiates flow control.
16
17Fixes: c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature initialization")
18Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
19Signed-off-by: Peng Li <lipeng321@huawei.com>
20Signed-off-by: David S. Miller <davem@davemloft.net>
21Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
22Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23---
24 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 1 +
25 1 file changed, 1 insertion(+)
26
27--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
28+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
29@@ -17,6 +17,7 @@
30 #define HCLGE_PHY_SUPPORTED_FEATURES (SUPPORTED_Autoneg | \
31 SUPPORTED_TP | \
32 SUPPORTED_Pause | \
33+ SUPPORTED_Asym_Pause | \
34 PHY_10BT_FEATURES | \
35 PHY_100BT_FEATURES | \
36 PHY_1000BT_FEATURES)