[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:
Michael Brown
2026-07-10 16:29:52 +01:00
parent 58ee55b3c1
commit 84ac70ef8e
+1
View File
@@ -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++ ) {