]>
Commit | Line | Data |
---|---|---|
72fc6108 GKH |
1 | From foo@baz Mon Apr 9 10:16:32 CEST 2018 |
2 | From: Fuyun Liang <liangfuyun1@huawei.com> | |
3 | Date: Fri, 22 Dec 2017 12:21:53 +0800 | |
4 | Subject: net: hns3: add Asym Pause support to phy default features | |
5 | ||
6 | From: Fuyun Liang <liangfuyun1@huawei.com> | |
7 | ||
8 | ||
9 | [ Upstream commit f16121c80c8ee4dab3c41363cb8b24f8d8eaf45f ] | |
10 | ||
11 | commit c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature | |
12 | initialization") adds default supported features for phy, but our hardware | |
13 | also supports Asym Pause. This patch adds Asym Pause support to phy | |
14 | default features to prevent Asym Pause can not be advertised when the phy | |
15 | negotiates flow control. | |
16 | ||
17 | Fixes: c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature initialization") | |
18 | Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com> | |
19 | Signed-off-by: Peng Li <lipeng321@huawei.com> | |
20 | Signed-off-by: David S. Miller <davem@davemloft.net> | |
21 | Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> | |
22 | Signed-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) |