Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756207AbdDMHGx (ORCPT ); Thu, 13 Apr 2017 03:06:53 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:50433 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753286AbdDMHGv (ORCPT ); Thu, 13 Apr 2017 03:06:51 -0400 From: Christoph Hellwig To: Thomas Gleixner , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: provide pci_request_irq / pci_free_irq helpers Date: Thu, 13 Apr 2017 09:06:39 +0200 Message-Id: <20170413070643.32165-1-hch@lst.de> X-Mailer: git-send-email 2.11.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 647 Lines: 11 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.