mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 11:00:27 +03:00
[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:
committed by
Michael Brown
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user