Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1622759

provide pci_request_irq / pci_free_irq helpers

From Christoph Hellwig <hch@lst.de>
Newsgroups linux.kernel
Subject provide pci_request_irq / pci_free_irq helpers
Date 2017-04-13 09:10 +0200
Message-ID <tvH3c-7S2-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


PCI drivers that support multiple MSI or MSI-X vectors currently have a
lot of boileplate code to generate names for each vector (or simply use
the same name for all of them, which isn't nice either).  This series
adds new helpers that allocate and free a name based on a format string
passed to the request_irq wrapper.

They also hide the [pci_dev,vector] to Linux irq number translation,
in fact the example NVMe driver conversion now never sees the Linux irq
number.  That might be useful to isolate PCI drivers from our IRQ numbers,
although to have a full abstraction we'd need similar wrappers for
{enable,disable,synchronize}_irq as well.

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

provide pci_request_irq / pci_free_irq helpers Christoph Hellwig <hch@lst.de> - 2017-04-13 09:10 +0200
  [PATCH 1/4] genirq: fix indentation in remove_irq Christoph Hellwig <hch@lst.de> - 2017-04-13 09:10 +0200
    Re: [PATCH 1/4] genirq: fix indentation in remove_irq Thomas Gleixner <tglx@linutronix.de> - 2017-04-14 19:30 +0200
    Re: [PATCH 1/4] genirq: fix indentation in remove_irq Sagi Grimberg <sagi@grimberg.me> - 2017-04-20 15:30 +0200
  [PATCH 3/4] PCI/irq: add pci_request_irq and pci_free_irq helpers Christoph Hellwig <hch@lst.de> - 2017-04-13 09:10 +0200
    Re: [PATCH 3/4] PCI/irq: add pci_request_irq and pci_free_irq helpers Bjorn Helgaas <helgaas@kernel.org> - 2017-04-14 16:50 +0200
      Re: [PATCH 3/4] PCI/irq: add pci_request_irq and pci_free_irq         helpers Christoph Hellwig <hch@lst.de> - 2017-04-14 18:00 +0200
  [PATCH 2/4] genirq: return the irq name from free_irq Christoph Hellwig <hch@lst.de> - 2017-04-13 09:10 +0200
    Re: [PATCH 2/4] genirq: return the irq name from free_irq Thomas Gleixner <tglx@linutronix.de> - 2017-04-14 19:30 +0200
      Re: [PATCH 2/4] genirq: return the irq name from free_irq Christoph Hellwig <hch@lst.de> - 2017-04-14 19:40 +0200
        Re: [PATCH 2/4] genirq: return the irq name from free_irq Thomas Gleixner <tglx@linutronix.de> - 2017-04-14 20:00 +0200
  Re: provide pci_request_irq / pci_free_irq helpers Bjorn Helgaas <helgaas@kernel.org> - 2017-04-18 20:50 +0200

csiph-web