linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/8] PCI: INTx interrupt fixes & cleanup
@ 2017-08-15 19:02 Paul Burton
  2017-08-15 19:02 ` [PATCH v7 1/8] PCI: Move enum pci_interrupt_pin to linux/pci.h Paul Burton
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Paul Burton @ 2017-08-15 19:02 UTC (permalink / raw)
  To: Bjorn Helgaas, linux-pci; +Cc: Paul Burton

This series fixes our handling of the PCI INTD interrupts in both Xilinx
PCIe controller drivers, and cleans up a wasted IRQ domain entry in the
Altera PCIe controller driver. It also adds a common PCI_INTX_NUM
definition which all relevant drivers under drivers/pci/host/ are
adjusted to make use of.

- Patch 1 moves enum pci_interrupt_pin to somewhere we can use it from
  PCI host code.

- Patch 2 introduces a helper function to translate 1-4 INTx ranges into
  the 0-3 range, by using it as a struct irq_domain's xlate callback.

- Patches 3 adjusts the Altera driver to avoid wasting an IRQ domain
  entry.

- Patches 4 & 5 fix the INTD interrupt for Xilinx PCIe drivers.

- Patches 6-8 make use of PCI_NUM_INTX to replace custom definitions or
  magic numbers in drivers.

The series versioning is continuing on from that of my "PCI: xilinx:
Fixes, optimisation & MIPS support" series which some of the earlier
patches were originally a part of, in order to prevent individual
patches from jumping backwards in versioning.

Applies atop v4.13-rc5.

Paul Burton (8):
  PCI: Move enum pci_interrupt_pin to linux/pci.h
  PCI: Introduce pci_irqd_intx_xlate()
  PCI: altera: Use size=4 IRQ domain for legacy INTx
  PCI: xilinx: Translate INTx range to hwirqs 0-3
  PCI: xilinx-nwl: Translate INTx range to hwirqs 0-3
  PCI: aardvark: Use PCI_NUM_INTX
  PCI: ftpci100: Use PCI_NUM_INTX
  PCI: rockchip: Use PCI_NUM_INTX

 drivers/pci/host/pci-aardvark.c    |  5 ++--
 drivers/pci/host/pci-ftpci100.c    |  2 +-
 drivers/pci/host/pcie-altera.c     |  9 +++----
 drivers/pci/host/pcie-rockchip.c   |  2 +-
 drivers/pci/host/pcie-xilinx-nwl.c |  9 +++----
 drivers/pci/host/pcie-xilinx.c     |  7 ++---
 include/linux/pci-epf.h            |  9 +------
 include/linux/pci.h                | 54 ++++++++++++++++++++++++++++++++++++++
 8 files changed, 71 insertions(+), 26 deletions(-)

-- 
2.14.1

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

end of thread, other threads:[~2017-08-18  1:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-15 19:02 [PATCH v7 0/8] PCI: INTx interrupt fixes & cleanup Paul Burton
2017-08-15 19:02 ` [PATCH v7 1/8] PCI: Move enum pci_interrupt_pin to linux/pci.h Paul Burton
2017-08-15 19:02 ` [PATCH v7 2/8] PCI: Introduce pci_irqd_intx_xlate() Paul Burton
2017-08-15 19:02 ` [PATCH v7 3/8] PCI: altera: Use size=4 IRQ domain for legacy INTx Paul Burton
2017-08-15 19:02 ` [PATCH v7 4/8] PCI: xilinx: Translate INTx range to hwirqs 0-3 Paul Burton
2017-08-15 19:02 ` [PATCH v7 5/8] PCI: xilinx-nwl: " Paul Burton
2017-08-15 19:02 ` [PATCH v7 6/8] PCI: aardvark: Use PCI_NUM_INTX Paul Burton
2017-08-15 19:46   ` Thomas Petazzoni
2017-08-15 19:02 ` [PATCH v7 7/8] PCI: ftpci100: " Paul Burton
2017-08-15 19:02 ` [PATCH v7 8/8] PCI: rockchip: " Paul Burton
2017-08-15 21:33 ` [PATCH v7 0/8] PCI: INTx interrupt fixes & cleanup Bjorn Helgaas
2017-08-17 22:38   ` Paul Burton
2017-08-18  1:34 ` 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).