All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/10] Add new helper to allocate IRQ domain for host drivers
@ 2018-06-14  1:33 Shawn Lin
  2018-06-14  1:34 ` [PATCH v4 01/10] PCI: Add pci_host_alloc_intx_irqd() for allocating IRQ domain Shawn Lin
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: Shawn Lin @ 2018-06-14  1:33 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi; +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_host_alloc_intx_irqd(), to avoid that as much as possible.


Changes in v4:
- fix another compile warning reported by Kbuild Robot

Changes in v3:
- rename to pci_host_alloc_intx_irqd and move to probe.c
- fix compile error reported by Kbuild Robot

Changes in v2:
- fix typo and move the code to C file.

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

 drivers/pci/controller/dwc/pci-dra7xx.c      | 42 ++--------------
 drivers/pci/controller/dwc/pci-keystone-dw.c | 13 ++---
 drivers/pci/controller/pci-aardvark.c        | 24 ++-------
 drivers/pci/controller/pci-ftpci100.c        | 15 ++----
 drivers/pci/controller/pcie-altera.c         | 38 ++------------
 drivers/pci/controller/pcie-mediatek.c       | 30 ++---------
 drivers/pci/controller/pcie-rockchip-host.c  | 38 ++------------
 drivers/pci/controller/pcie-xilinx-nwl.c     | 22 ++-------
 drivers/pci/controller/pcie-xilinx.c         | 44 ++---------------
 drivers/pci/probe.c                          | 74 ++++++++++++++++++++++++++++
 include/linux/pci.h                          |  7 +++
 11 files changed, 119 insertions(+), 228 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2018-07-19 12:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-14  1:33 [PATCH v4 0/10] Add new helper to allocate IRQ domain for host drivers Shawn Lin
2018-06-14  1:34 ` [PATCH v4 01/10] PCI: Add pci_host_alloc_intx_irqd() for allocating IRQ domain Shawn Lin
2018-06-14  7:09   ` Thomas Petazzoni
2018-07-19 11:37     ` Lorenzo Pieralisi
2018-06-14  1:34 ` [PATCH v4 02/10] PCI: dra7xx: Use pci_host_alloc_intx_irqd() helper to simplify the code Shawn Lin
2018-06-14  1:34 ` [PATCH v4 03/10] PCI: keystone-dw: Use pci_host_alloc_intx_irqd() helper to get irq domain for INTx Shawn Lin
2018-06-14  1:35 ` [PATCH v4 04/10] PCI: aardvark: " Shawn Lin
2018-06-14  1:35 ` [PATCH v4 05/10] PCI: faraday: " Shawn Lin
2018-06-14  1:35 ` [PATCH v4 06/10] PCI: altera: " Shawn Lin
2018-06-14 10:51   ` Ley Foon Tan
2018-06-14  1:36 ` [PATCH v4 07/10] PCI: mediatek: " Shawn Lin
2018-06-14  1:36 ` [PATCH v4 08/10] PCI: xilinx-nwl: " Shawn Lin
2018-06-14  1:36 ` [PATCH v4 09/10] PCI: xilinx: " Shawn Lin
2018-06-14  1:36 ` [PATCH v4 10/10] PCI: rockchip: " Shawn Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.