Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba41d46f authored by Michael Chan's avatar Michael Chan Committed by David S. Miller
Browse files

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: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent de73018f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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) {