david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[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>
This commit is contained in:
Leendert van Doorn 2016-06-13 08:14:42 -05:00 committed by Michael Brown
parent 188789eb3c
commit 02d5cfff22
1 changed files with 2 additions and 0 deletions

View File

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