]> git.baikalelectronics.ru Git - kernel.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)
commit4a81eda3746cbf2209da3fd545b15941e2deb065
tree979cfdf24378c63203e3a0430d93f7da6f03db82
parent38c83b720210754d0cea5b62a04630b20d55dfb6
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