* [RFC Patch V1 02/12] MIPS, PCI: Use for_pci_msi_entry() to access MSI device list [not found] <1436428847-8886-1-git-send-email-jiang.liu@linux.intel.com> @ 2015-07-09 8:00 ` Jiang Liu 2015-07-09 11:03 ` Sergei Shtylyov 0 siblings, 1 reply; 2+ messages in thread From: Jiang Liu @ 2015-07-09 8:00 UTC (permalink / raw) To: Bjorn Helgaas, Thomas Gleixner, Ingo Molnar, Grant Likely, Marc Zyngier, Stuart Yoder, Yijing Wang, Borislav Petkov, Ralf Baechle Cc: Jiang Liu, Tony Luck, linux-kernel, linux-pci, linux-arm-kernel, linux-mips Use accessor for_pci_msi_entry() to access MSI device list, so we could easily move msi_list from struct pci_dev into struct device later. Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> --- arch/mips/pci/msi-octeon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/pci/msi-octeon.c b/arch/mips/pci/msi-octeon.c index cffaaf4aae3c..2a5bb849b10e 100644 --- a/arch/mips/pci/msi-octeon.c +++ b/arch/mips/pci/msi-octeon.c @@ -200,7 +200,7 @@ int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) if (type == PCI_CAP_ID_MSI && nvec > 1) return 1; - list_for_each_entry(entry, &dev->msi_list, list) { + for_each_pci_msi_entry(entry, dev) { ret = arch_setup_msi_irq(dev, entry); if (ret < 0) return ret; -- 1.7.10.4 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC Patch V1 02/12] MIPS, PCI: Use for_pci_msi_entry() to access MSI device list 2015-07-09 8:00 ` [RFC Patch V1 02/12] MIPS, PCI: Use for_pci_msi_entry() to access MSI device list Jiang Liu @ 2015-07-09 11:03 ` Sergei Shtylyov 0 siblings, 0 replies; 2+ messages in thread From: Sergei Shtylyov @ 2015-07-09 11:03 UTC (permalink / raw) To: Jiang Liu, Bjorn Helgaas, Thomas Gleixner, Ingo Molnar, Grant Likely, Marc Zyngier, Stuart Yoder, Yijing Wang, Borislav Petkov, Ralf Baechle Cc: Tony Luck, linux-kernel, linux-pci, linux-arm-kernel, linux-mips Hello. On 7/9/2015 11:00 AM, Jiang Liu wrote: > Use accessor for_pci_msi_entry() to access MSI device list, so we could Maybe for_each_pci_msi_entry()? > easily move msi_list from struct pci_dev into struct device later. > Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> > --- > arch/mips/pci/msi-octeon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > diff --git a/arch/mips/pci/msi-octeon.c b/arch/mips/pci/msi-octeon.c > index cffaaf4aae3c..2a5bb849b10e 100644 > --- a/arch/mips/pci/msi-octeon.c > +++ b/arch/mips/pci/msi-octeon.c > @@ -200,7 +200,7 @@ int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) > if (type == PCI_CAP_ID_MSI && nvec > 1) > return 1; > > - list_for_each_entry(entry, &dev->msi_list, list) { > + for_each_pci_msi_entry(entry, dev) { > ret = arch_setup_msi_irq(dev, entry); > if (ret < 0) > return ret; WBR, Sergei ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-09 11:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1436428847-8886-1-git-send-email-jiang.liu@linux.intel.com>
2015-07-09 8:00 ` [RFC Patch V1 02/12] MIPS, PCI: Use for_pci_msi_entry() to access MSI device list Jiang Liu
2015-07-09 11:03 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox