提交 ba41d46f 编写于 作者: M Michael Chan 提交者: David S. Miller

bnxt_en: Failure to update PHY is not fatal condition.

If we fail to update the PHY, we should print a warning and continue.
The current code to exit is buggy as it has not freed up the NIC
resources yet.
Signed-off-by: NMichael Chan <michael.chan@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 de73018f
...@@ -4642,7 +4642,7 @@ static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) ...@@ -4642,7 +4642,7 @@ static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
if (link_re_init) { if (link_re_init) {
rc = bnxt_update_phy_setting(bp); rc = bnxt_update_phy_setting(bp);
if (rc) if (rc)
goto open_err; netdev_warn(bp->dev, "failed to update phy settings\n");
} }
if (irq_re_init) { if (irq_re_init) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册