mirror of https://github.com/ipxe/ipxe.git
[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>pull/56/head
parent
188789eb3c
commit
02d5cfff22
|
@ -486,6 +486,8 @@ static void tg3_poll(struct net_device *dev)
|
||||||
*/
|
*/
|
||||||
tp->hw_status->status &= ~SD_STATUS_UPDATED;
|
tp->hw_status->status &= ~SD_STATUS_UPDATED;
|
||||||
|
|
||||||
|
mb();
|
||||||
|
|
||||||
tg3_poll_link(tp);
|
tg3_poll_link(tp);
|
||||||
tg3_tx_complete(dev);
|
tg3_tx_complete(dev);
|
||||||
tg3_rx_complete(dev);
|
tg3_rx_complete(dev);
|
||||||
|
|
Loading…
Reference in New Issue