From patchwork Tue Jun 9 09:19:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Stankiewicz X-Patchwork-Id: 11594981 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D840290 for ; Tue, 9 Jun 2020 09:19:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C932820814 for ; Tue, 9 Jun 2020 09:19:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728373AbgFIJTR (ORCPT ); Tue, 9 Jun 2020 05:19:17 -0400 Received: from mga05.intel.com ([192.55.52.43]:4903 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728104AbgFIJTP (ORCPT ); Tue, 9 Jun 2020 05:19:15 -0400 IronPort-SDR: XsDo5P/Co/74B7/Ic7s4204uum73imScqId6rP9CJPjHkIeFUAEn6Y1TglNGpKYcvWxVViZETI 48oSY5c67yUw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2020 02:19:15 -0700 IronPort-SDR: 15YJQR1U+wZ/oPcTRvFeV+F+/MC0LmREO3KWkdSokSXsxbiOfh1Ct+DDy/fBpHuEvWraUhYWb1 f0tRbv+dEWRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,491,1583222400"; d="scan'208";a="295775697" Received: from gklab-125-110.igk.intel.com ([10.91.125.110]) by fmsmga004.fm.intel.com with ESMTP; 09 Jun 2020 02:19:13 -0700 From: Piotr Stankiewicz To: Bjorn Helgaas , linux-pci@vger.kernel.org Cc: Piotr Stankiewicz , Arnd Bergmann , Greg Kroah-Hartman , Stefano Garzarella , Andy Shevchenko , "David S. Miller" , linux-kernel@vger.kernel.org Subject: [PATCH v3 10/15] vmw_vmci: Use PCI_IRQ_ALL_TYPES where appropriate Date: Tue, 9 Jun 2020 11:19:10 +0200 Message-Id: <20200609091911.1517-1-piotr.stankiewicz@intel.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20200609091148.32749-1-piotr.stankiewicz@intel.com> References: <20200609091148.32749-1-piotr.stankiewicz@intel.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Seeing as there is shorthand available to use when asking for any type of interrupt, or any type of message signalled interrupt, leverage it. Signed-off-by: Piotr Stankiewicz Reviewed-by: Andy Shevchenko --- drivers/misc/vmw_vmci/vmci_guest.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/misc/vmw_vmci/vmci_guest.c b/drivers/misc/vmw_vmci/vmci_guest.c index cc8eeb361fcd..ea300573f652 100644 --- a/drivers/misc/vmw_vmci/vmci_guest.c +++ b/drivers/misc/vmw_vmci/vmci_guest.c @@ -584,8 +584,7 @@ static int vmci_guest_probe_device(struct pci_dev *pdev, error = pci_alloc_irq_vectors(pdev, VMCI_MAX_INTRS, VMCI_MAX_INTRS, PCI_IRQ_MSIX); if (error < 0) { - error = pci_alloc_irq_vectors(pdev, 1, 1, - PCI_IRQ_MSIX | PCI_IRQ_MSI | PCI_IRQ_LEGACY); + error = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); if (error < 0) goto err_remove_bitmap; } else {