diff options
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 042fa5265cf6..2329f941a0dc 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -446,6 +446,10 @@ pci_save_state(struct pci_dev *dev) | |||
446 | /* XXX: 100% dword access ok here? */ | 446 | /* XXX: 100% dword access ok here? */ |
447 | for (i = 0; i < 16; i++) | 447 | for (i = 0; i < 16; i++) |
448 | pci_read_config_dword(dev, i * 4,&dev->saved_config_space[i]); | 448 | pci_read_config_dword(dev, i * 4,&dev->saved_config_space[i]); |
449 | if ((i = pci_save_msi_state(dev)) != 0) | ||
450 | return i; | ||
451 | if ((i = pci_save_msix_state(dev)) != 0) | ||
452 | return i; | ||
449 | return 0; | 453 | return 0; |
450 | } | 454 | } |
451 | 455 | ||
@@ -460,6 +464,8 @@ pci_restore_state(struct pci_dev *dev) | |||
460 | 464 | ||
461 | for (i = 0; i < 16; i++) | 465 | for (i = 0; i < 16; i++) |
462 | pci_write_config_dword(dev,i * 4, dev->saved_config_space[i]); | 466 | pci_write_config_dword(dev,i * 4, dev->saved_config_space[i]); |
467 | pci_restore_msi_state(dev); | ||
468 | pci_restore_msix_state(dev); | ||
463 | return 0; | 469 | return 0; |
464 | } | 470 | } |
465 | 471 | ||