OSDN Git Service

net: hns3: Refactor mac_init function
authorqumingguang <qumingguang@huawei.com>
Thu, 2 Nov 2017 12:45:16 +0000 (20:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 12:28:35 +0000 (21:28 +0900)
commitcf9cca2dd903b78d04ea7ad4cde0231988944d0f
tree09f4aabb402c7720bded6216275d6eccc6e23e8c
parent7df7dad633e2c6d43ee9b39c267ee0add9798384
net: hns3: Refactor mac_init function

It needs initialize mdio in initialization process, but reset process
does not reset mdio, so do not initialize mdio in reset process.
This patch move out the mdio configuration function from the mac_init.
So mac_init can be used both in reset process and initialization process.

Signed-off-by: qumingguang <qumingguang@huawei.com>
Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c