net: hns3: do not initialize mdio bus when phy is inexistent
driver inclusion category: bugfix bugzilla: NA CVE: NA For some boards, phy is not connected to mdio bus. In this case, mdio bus initialization will fail, then cause the device initialize fail. This patch fixes it by skip the mdio bus initialization when phy is inexistent. Signed-off-by: Nshenjian (K) <shenjian15@huawei.com> Reviewed-by: Nlipeng <lipeng321@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录