aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel.send@gmail.com>2008-04-23 17:58:09 -0400
committerJesse Barnes <jbarnes@hobbes.lan>2008-04-29 12:12:51 -0400
commitd52877c7b1afb8c37ebe17e2005040b79cb618b0 (patch)
treeb5cc4252cad0d7f22a6b63e50d1ec46a9a495773 /include/linux/pci.h
parent8e149e09f91098fd72bf9ac5b4a77a693abf721e (diff)
pci/irq: let pci_device_shutdown to call pci_msi_shutdown v2
[PATCH 2/2] pci/irq: let pci_device_shutdown to call pci_msi_shutdown v2 this change | commit 23a274c8a5adafc74a66f16988776fc7dd6f6e51 | Author: Prakash, Sathya <sathya.prakash@lsi.com> | Date: Fri Mar 7 15:53:21 2008 +0530 | | [SCSI] mpt fusion: Enable MSI by default for SAS controllers | | This patch modifies the driver to enable MSI by default for all SAS chips. | | Signed-off-by: Sathya Prakash <sathya.prakash@lsi.com> | Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> | Causes the kexec of a RHEL 5.1 kernel to fail. root casue: the rhel 5.1 kernel still uses INTx emulation. and mptscsih_shutdown doesn't call pci_disable_msi to reenable INTx on kexec path So call pci_msi_shutdown in the shutdown path to do the same thing to msix Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Jesse Barnes <jbarnes@hobbes.lan>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 7a0770d4c4e2..e09c57e9c373 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -701,6 +701,8 @@ static inline int pci_enable_msi(struct pci_dev *dev)
701 return -1; 701 return -1;
702} 702}
703 703
704static inline void pci_msi_shutdown(struct pci_dev *dev)
705{ }
704static inline void pci_disable_msi(struct pci_dev *dev) 706static inline void pci_disable_msi(struct pci_dev *dev)
705{ } 707{ }
706 708
@@ -710,6 +712,8 @@ static inline int pci_enable_msix(struct pci_dev *dev,
710 return -1; 712 return -1;
711} 713}
712 714
715static inline void pci_msix_shutdown(struct pci_dev *dev)
716{ }
713static inline void pci_disable_msix(struct pci_dev *dev) 717static inline void pci_disable_msix(struct pci_dev *dev)
714{ } 718{ }
715 719
@@ -720,9 +724,11 @@ static inline void pci_restore_msi_state(struct pci_dev *dev)
720{ } 724{ }
721#else 725#else
722extern int pci_enable_msi(struct pci_dev *dev); 726extern int pci_enable_msi(struct pci_dev *dev);
727extern void pci_msi_shutdown(struct pci_dev *dev);
723extern void pci_disable_msi(struct pci_dev *dev); 728extern void pci_disable_msi(struct pci_dev *dev);
724extern int pci_enable_msix(struct pci_dev *dev, 729extern int pci_enable_msix(struct pci_dev *dev,
725 struct msix_entry *entries, int nvec); 730 struct msix_entry *entries, int nvec);
731extern void pci_msix_shutdown(struct pci_dev *dev);
726extern void pci_disable_msix(struct pci_dev *dev); 732extern void pci_disable_msix(struct pci_dev *dev);
727extern void msi_remove_pci_irq_vectors(struct pci_dev *dev); 733extern void msi_remove_pci_irq_vectors(struct pci_dev *dev);
728extern void pci_restore_msi_state(struct pci_dev *dev); 734extern void pci_restore_msi_state(struct pci_dev *dev);