]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 28 Jun 2017 14:24:11 +0000 (11:24 -0300)
commitee931a6498a4b16783b715f1bcb10be32ceeb1ff
tree722fc8282e888de23ef798aecee70ede41761c62
parent4cda3e2ca2f1727e6ce0e54416f1f6f227702404
net: hns: support deferred probe when no mdio

BugLink: https://bugs.launchpad.net/bugs/1696031
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>
(cherry picked from commit 804ffe5c6197fc2696681c597ce096d93eb24af5)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c