]> git.baikalelectronics.ru Git - kernel.git/commit
MSI: Use a list instead of the custom link structure
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 5 Apr 2007 07:19:10 +0000 (17:19 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 May 2007 02:02:37 +0000 (19:02 -0700)
commit2b2f4197b851054e8a97a231b86ca8c339e0182e
treebd0604f5d7308d63cafbb1e3134580e284d86a50
parent45f095f0dcfc4e453783adaea7cc172d6325f63e
MSI: Use a list instead of the custom link structure

The msi descriptors are linked together with what looks a lot like
a linked list, but isn't a struct list_head list. Make it one.

The only complication is that previously we walked a list of irqs, and
got the descriptor for each with get_irq_msi(). Now we have a list of
descriptors and need to get the irq out of it, so it needs to be in the
actual struct msi_desc. We use 0 to indicate no irq is setup.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/msi.c
drivers/pci/pci.h
drivers/pci/probe.c
include/linux/msi.h
include/linux/pci.h