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)
commit439adf885e6dd3b2a64941a167b4c18d3728c6dc
tree43d57e29a673bda35eb596eb45c804aaaf0b954f
parentd63671d27cd1cc1f93f5fcb86eaeee57c8190d46
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: 256727d (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