]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
MSI: Factorize common code in pci_msi_supported()
authorBrice Goglin <brice@myri.com>
Thu, 31 Aug 2006 05:55:07 +0000 (01:55 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 00:43:52 +0000 (17:43 -0700)
commit24334a12533e9ac70dcb467ccd629f190afc5361
treebf771331e8b657fd4f4e7170a4ad3dc437b8d514
parent3f79e107f72e8efa86cd2f21356692b712713b5c
MSI: Factorize common code in pci_msi_supported()

pci_enable_msi() and pci_enable_msix() use the same code to detect
whether MSI might be enabled on this device. Factorize this code in
pci_msi_supported(). And improve the documentation about the fact
that only the root chipset must support MSI, but it is hard to
find the root bus so we check all parent busses MSI flags.

Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/msi.c