]> 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)
commit918fccf79b259adf11c05e192514533f51819e05
tree43d57e29a673bda35eb596eb45c804aaaf0b954f
parent2dea3f29c35867f81c718ef548558030006d9694
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: d6a397b (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