]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: support deferred probe when no mdio
authorlipeng <lipeng321@huawei.com>
Fri, 28 Apr 2017 06:49:47 +0000 (14:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 02:39:24 +0000 (22:39 -0400)
commitf81b8fb6888fa47ebb094c2e9d235c1683b6c26d
tree41e34fb827d6d60c6aad55c7d40757eca80becdf
parent61b4b13f375e65b2d98d04f0005d2c9dd5fb50b4
net: hns: support deferred probe when no mdio

In the hip06 and hip07 SoCs, phy connect to mdio bus.The mdio
module is probed with module_init, and, as such,
is not guaranteed to probe before the HNS driver. So we need
to support deferred probe.

We check for probe deferral in the mac init, so we not init DSAF
when there is no mdio, and free all resource, to later learn that
we need to defer the probe.

Signed-off-by: lipeng <lipeng321@huawei.com>
Reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c