Browse Source

[tg3] Add missing memory barrier

ARM64 has a weaker memory order model than x86.  The missing memory
barrier caused phy initialization notification to be delayed beyond
the link-wait timeout (15 secs).

Signed-off-by: Leendert van Doorn <leendert@paramecium.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Leendert van Doorn 8 years ago
parent
commit
02d5cfff22
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/drivers/net/tg3/tg3.c

+ 2
- 0
src/drivers/net/tg3/tg3.c View File

@@ -486,6 +486,8 @@ static void tg3_poll(struct net_device *dev)
486 486
 	 */
487 487
 	tp->hw_status->status &= ~SD_STATUS_UPDATED;
488 488
 
489
+	mb();
490
+
489 491
 	tg3_poll_link(tp);
490 492
 	tg3_tx_complete(dev);
491 493
 	tg3_rx_complete(dev);

Loading…
Cancel
Save