mirror of
https://github.com/ipxe/ipxe
synced 2026-10-07 15:05:42 +03:00
[hermon] Add missing write barrier after initiating reset
Ensure that the reset register write does not get reordered behind the first PCI configuration space read that checks to see if the reset has completed. Debugged-by: Jaroslav Svoboda <multi.flexi@seznam.cz> Tested-by: Jaroslav Svoboda <multi.flexi@seznam.cz> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -2843,6 +2843,7 @@ static int hermon_reset ( struct hermon *hermon ) {
|
||||
pci_backup ( pci, &backup, PCI_CONFIG_BACKUP_ALL, backup_exclude );
|
||||
writel ( HERMON_RESET_MAGIC,
|
||||
( hermon->config + HERMON_RESET_OFFSET ) );
|
||||
wmb();
|
||||
|
||||
/* Wait until device starts responding to configuration cycles */
|
||||
for ( i = 0 ; i < HERMON_RESET_MAX_WAIT_MS ; i++ ) {
|
||||
|
||||
Reference in New Issue
Block a user