linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] Add new helper to allocate irq domain for hosts
@ 2018-04-27  8:22 Shawn Lin
  2018-04-27  8:22 ` [PATCH 1/9] PCI: Add new helper for allocating irq domain for INTx Shawn Lin
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Shawn Lin @ 2018-04-27  8:22 UTC (permalink / raw)
  To: Lorenzo Pieralisi, Bjorn Helgaas; +Cc: linux-pci, Shawn Lin


Hi Bjorn and Lorenzo,

PCI drivers use highly similar code block to allocate irq domain which
leads to code duplication than expected. This patchset adds a new helper,
pci_alloc_intx_irqd(), to avoid that as much as possible. Just leave
pcie-rockchip out now as it's under re-construct and will add incremental
patch for it if this series looks ok and the pcie-rockchip ongoing patches
got merge.



Shawn Lin (9):
  PCI: Add new helper for allocating irq domain for INTx
  PCI: dra7xx: Use pci_alloc_intx_irqd() helper to simplify the code
  PCI: keystone-dw: Use pci_alloc_intx_irqd() helper to get irq domain
    for INTx
  PCI: aardvark: Use pci_alloc_intx_irqd() helper to get irq domain for
    INTx
  PCI: faraday: Use pci_alloc_intx_irqd() helper to get irq domain for
    INTx
  PCI: altera: Use pci_alloc_intx_irqd() helper to get irq domain for
    INTx
  PCI: mediatek: Use pci_alloc_intx_irqd() helper to get irq domain for
    INTx
  PCI: xilinx-nwl: Use pci_alloc_intx_irqd() helper to get irq domain
    for INTx
  PCI: xilinx: Use pci_alloc_intx_irqd() helper to get irq domain for
    INTx

 drivers/pci/dwc/pci-dra7xx.c       | 41 ++-------------------
 drivers/pci/dwc/pci-keystone-dw.c  | 12 +++----
 drivers/pci/host/pci-aardvark.c    | 24 +++----------
 drivers/pci/host/pci-ftpci100.c    | 15 +++-----
 drivers/pci/host/pcie-altera.c     | 38 +++-----------------
 drivers/pci/host/pcie-mediatek.c   | 29 ++-------------
 drivers/pci/host/pcie-xilinx-nwl.c | 21 +++--------
 drivers/pci/host/pcie-xilinx.c     | 43 ++--------------------
 include/linux/pci.h                | 74 ++++++++++++++++++++++++++++++++++++++
 9 files changed, 104 insertions(+), 193 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-05-02  0:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-27  8:22 [PATCH 0/9] Add new helper to allocate irq domain for hosts Shawn Lin
2018-04-27  8:22 ` [PATCH 1/9] PCI: Add new helper for allocating irq domain for INTx Shawn Lin
2018-04-27 17:18   ` Bjorn Helgaas
2018-04-28  0:44     ` Shawn Lin
2018-04-28 22:52   ` kbuild test robot
2018-04-28 23:08   ` kbuild test robot
2018-04-27  8:22 ` [PATCH 2/9] PCI: dra7xx: Use pci_alloc_intx_irqd() helper to simplify the code Shawn Lin
2018-04-27  8:23 ` [PATCH 3/9] PCI: keystone-dw: Use pci_alloc_intx_irqd() helper to get irq domain for INTx Shawn Lin
2018-04-27  8:23 ` [PATCH 4/9] PCI: aardvark: " Shawn Lin
2018-04-27  8:23 ` [PATCH 5/9] PCI: faraday: " Shawn Lin
2018-04-28 23:32   ` kbuild test robot
2018-04-27  8:24 ` [PATCH 6/9] PCI: altera: " Shawn Lin
2018-04-27  8:24 ` [PATCH 7/9] PCI: mediatek: " Shawn Lin
2018-04-27  8:24 ` [PATCH 8/9] PCI: xilinx-nwl: " Shawn Lin
2018-04-27  8:25 ` [PATCH 9/9] PCI: xilinx: " Shawn Lin
2018-04-30 10:19 ` [PATCH 0/9] Add new helper to allocate irq domain for hosts Lorenzo Pieralisi
2018-05-02  0:59   ` Shawn Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).