mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Logan Gunthorpe <logang@deltatee.com>
To: Piotr Stankiewicz <piotr.stankiewicz@intel.com>,
	Bjorn Helgaas <bhelgaas@google.com>,
	Kurt Schwemmer <kurt.schwemmer@microsemi.com>
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 03/15] PCI: use PCI_IRQ_MSI_TYPES where appropriate
Date: Tue, 2 Jun 2020 09:40:06 -0600	[thread overview]
Message-ID: <b13285b7-4803-5242-e180-75e4d514f1ab@deltatee.com> (raw)
In-Reply-To: <20200602092002.31787-1-piotr.stankiewicz@intel.com>



On 2020-06-02 3:20 a.m., Piotr Stankiewicz wrote:
> 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 <piotr.stankiewicz@intel.com>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>

Seems fine to me, for the switchtec portions:

Reviewed-by: Logan Gunthorpe <logang@deltatee.com>

> ---
>  drivers/pci/pcie/portdrv_core.c | 4 ++--
>  drivers/pci/switch/switchtec.c  | 3 +--
>  2 files changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c
> index 50a9522ab07d..2a38a918ba12 100644
> --- a/drivers/pci/pcie/portdrv_core.c
> +++ b/drivers/pci/pcie/portdrv_core.c
> @@ -105,7 +105,7 @@ static int pcie_port_enable_irq_vec(struct pci_dev *dev, int *irqs, int mask)
>  
>  	/* Allocate the maximum possible number of MSI/MSI-X vectors */
>  	nr_entries = pci_alloc_irq_vectors(dev, 1, PCIE_PORT_MAX_MSI_ENTRIES,
> -			PCI_IRQ_MSIX | PCI_IRQ_MSI);
> +			PCI_IRQ_MSI_TYPES);
>  	if (nr_entries < 0)
>  		return nr_entries;
>  
> @@ -131,7 +131,7 @@ static int pcie_port_enable_irq_vec(struct pci_dev *dev, int *irqs, int mask)
>  		pci_free_irq_vectors(dev);
>  
>  		nr_entries = pci_alloc_irq_vectors(dev, nvec, nvec,
> -				PCI_IRQ_MSIX | PCI_IRQ_MSI);
> +				PCI_IRQ_MSI_TYPES);
>  		if (nr_entries < 0)
>  			return nr_entries;
>  	}
> diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c
> index e69cac84b605..11fbe9c6b201 100644
> --- a/drivers/pci/switch/switchtec.c
> +++ b/drivers/pci/switch/switchtec.c
> @@ -1442,8 +1442,7 @@ static int switchtec_init_isr(struct switchtec_dev *stdev)
>  		nirqs = 4;
>  
>  	nvecs = pci_alloc_irq_vectors(stdev->pdev, 1, nirqs,
> -				      PCI_IRQ_MSIX | PCI_IRQ_MSI |
> -				      PCI_IRQ_VIRTUAL);
> +				      PCI_IRQ_MSI_TYPES | PCI_IRQ_VIRTUAL);
>  	if (nvecs < 0)
>  		return nvecs;
>  
> 

      reply	other threads:[~2020-06-02 15:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-02  9:20 Piotr Stankiewicz
2020-06-02 15:40 ` Logan Gunthorpe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b13285b7-4803-5242-e180-75e4d514f1ab@deltatee.com \
    --to=logang@deltatee.com \
    --cc=bhelgaas@google.com \
    --cc=kurt.schwemmer@microsemi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=piotr.stankiewicz@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®