net: hns3: synchronize speed and duplex from phy when phy link up
authorPeng Li <lipeng321@huawei.com>
Tue, 18 Dec 2018 11:37:56 +0000 (19:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 20:01:01 +0000 (12:01 -0800)
commit0ad5ea5dbd6cb1e62bac547db5e61bab15af4f44
tree184b9b083d42f7f817e9cd96a3c1fef5aee2f799
parent8362089d787724bb252f13f942921051943369c7
net: hns3: synchronize speed and duplex from phy when phy link up

Driver calls phy_connect_direct and registers hclge_mac_adjust_link
to synchronize mac speed and duplex from phy. It is better to
synchronize mac speed and duplex from phy when phy link up.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c