diff options
author | Michael Brown <mcb30@ipxe.org> | 2022-11-13 20:42:09 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2022-11-13 20:42:09 +0000 |
commit | ca2be7e094c900542e36f70f3abc3c8ff7c3055d (patch) | |
tree | dc22399acbc7aba0a69f673fb93d7d095a179a85 /src/drivers/infiniband/hermon.c | |
parent | 688646fe6d034e98fe7cbcc9403a2d0f70434f40 (diff) | |
download | ipxe-ca2be7e094c900542e36f70f3abc3c8ff7c3055d.tar.gz |
[pci] Allow PCI config space backup to be limited by maximum offset
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/infiniband/hermon.c')
-rw-r--r-- | src/drivers/infiniband/hermon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/infiniband/hermon.c b/src/drivers/infiniband/hermon.c index 2afaaf991..c09baf7ae 100644 --- a/src/drivers/infiniband/hermon.c +++ b/src/drivers/infiniband/hermon.c @@ -2840,7 +2840,7 @@ static int hermon_reset ( struct hermon *hermon ) { hermon->toggle = 0; /* Perform device reset and preserve PCI configuration */ - pci_backup ( pci, &backup, backup_exclude ); + pci_backup ( pci, &backup, PCI_CONFIG_BACKUP_ALL, backup_exclude ); writel ( HERMON_RESET_MAGIC, ( hermon->config + HERMON_RESET_OFFSET ) ); @@ -2852,7 +2852,8 @@ static int hermon_reset ( struct hermon *hermon ) { if ( vendor == pci->vendor ) { /* Restore PCI configuration */ - pci_restore ( pci, &backup, backup_exclude ); + pci_restore ( pci, &backup, PCI_CONFIG_BACKUP_ALL, + backup_exclude ); DBGC ( hermon, "Hermon %p reset after %dms\n", hermon, i ); |