]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix a bug for phy supported feature initialization
authorFuyun Liang <liangfuyun1@huawei.com>
Fri, 3 Nov 2017 04:18:30 +0000 (12:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Nov 2017 12:36:50 +0000 (21:36 +0900)
commit4726ee0aa3ed951e40cbcc19e0f272c900801ac7
tree43d57e29a673bda35eb596eb45c804aaaf0b954f
parentd7d307e322ae62e30f80e265c65003147f6ee094
net: hns3: fix a bug for phy supported feature initialization

This patch fixes a bug for phy supported feature initialization.
Currently, the value of phydev->supported is initialized by kernel.
So it includes many features that we do not support, such as
SUPPORTED_FIBRE and SUPPORTED_BNC. This patch fixes it.

Fixes: b5dff40 (net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC)
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c