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

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

bnxt_en: Poll link at the end of __bnxt_open_nic().



When shutting down the NIC, we shutdown async event processing before
freeing all the rings.  If there is a link change event during reset, the
driver may miss it and the link state may be incorrect after the NIC is
re-opened.  Poll the link at the end of __bnxt_open_nic() to get the
correct link status.

Signed-off-by Michael Chan <michael.chan@broadcom.com>

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8d2c3ab4
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -4662,6 +4662,7 @@ static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
	/* Enable TX queues */
	/* Enable TX queues */
	bnxt_tx_enable(bp);
	bnxt_tx_enable(bp);
	mod_timer(&bp->timer, jiffies + bp->current_interval);
	mod_timer(&bp->timer, jiffies + bp->current_interval);
	bnxt_update_link(bp, true);


	return 0;
	return 0;