]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ipr: add test for MSI interrupt support
authorWayne Boyer <wayneb@linux.vnet.ibm.com>
Tue, 16 Jun 2009 22:13:28 +0000 (15:13 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 21 Jun 2009 15:52:46 +0000 (10:52 -0500)
commit95fecd90397ec1f85eb31ede955d846a86d2077b
tree979cfdf24378c63203e3a0430d93f7da6f03db82
parenta9e0edb687151617fe89cc5ab0086ebfc73ffccb
ipr: add test for MSI interrupt support

The return value from pci_enable_msi() can not always be trusted.  This patch
adds code to generate an interrupt after MSI has been enabled and tests
whether or not we can receive and process it.  If the tests fails, then fall
back to LSI.

Signed-off-by: Wayne Boyer <wayneb@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/ipr.c
drivers/scsi/ipr.h