commit | c5ef83cbb1e9fa17a3b78fb2deb25ae8beebbf48 | [log] [tgz] |
---|---|---|
author | Huazhong Tan <tanhuazhong@huawei.com> | Tue May 01 19:56:01 2018 +0100 |
committer | David S. Miller <davem@davemloft.net> | Tue May 01 15:08:37 2018 -0400 |
tree | 9bacfda20143e4fa5b2fbe45373d631ddb429494 | |
parent | ffd5656e182b94148998b48f748112450c9ff2b0 [diff] |
net: hns3: fix for phy_addr error in hclge_mac_mdio_config When phy exists, phy_addr must less than PHY_MAX_ADDR. If not, hclge_mac_mdio_config should return error. And for fiber(phy_addr=0xff), it does not need hclge_mac_mdio_config. Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>