RE: [RFC PATCH 09/11] PCI/MSI: refactor PCI MSI driver

2014-08-20 Thread bharat.bhus...@freescale.com
; James E.J. Bottomley; Marc Zyngier; linux-arm- ker...@lists.infradead.org; Russell King; linux-a...@vger.kernel.org; Basu Arnab-B45036; virtualization@lists.linux-foundation.org; Hanjun Guo; Yijing Wang Subject: [RFC PATCH 09/11] PCI/MSI: refactor PCI MSI driver Use struct msi_ops to hook

Re: [RFC PATCH 09/11] PCI/MSI: refactor PCI MSI driver

2014-08-20 Thread Yijing Wang
@@ -1025,21 +1059,52 @@ int pci_msi_enabled(void) } EXPORT_SYMBOL(pci_msi_enabled); -void pci_msi_init_pci_dev(struct pci_dev *dev) +static struct msi_ops pci_msi = { +.msi_set_enable = msi_set_enable, +.msi_setup_entry = msi_setup_entry, +.msix_setup_entries =

[RFC PATCH 09/11] PCI/MSI: refactor PCI MSI driver

2014-07-25 Thread Yijing Wang
Use struct msi_ops to hook PCI MSI operations, and use struct msi_irqs to refactor PCI MSI drvier. Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/msi.c | 351 ++- include/linux/msi.h | 14 +- include/linux/pci.h | 11 +- 3