mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexander Gordeev <agordeev@redhat.com>
To: Jason Cooper <jason@lakedaemon.net>,
	Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	Gregory CLEMENT <gregory.clement@free-electrons.com>,
	Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Cc: linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	linux-pci@vger.kernel.org
Subject: Re: [PATCH v2 2/3] PCI/MSI/Armada-370-xp: Remove arch_msi_check_device()
Date: Mon, 15 Sep 2014 09:36:37 +0100	[thread overview]
Message-ID: <20140915083636.GD8793@agordeev.usersys.redhat.com> (raw)
In-Reply-To: <20140908111656.GC30828@titan.lakedaemon.net>

On Mon, Sep 08, 2014 at 07:16:56AM -0400, Jason Cooper wrote:
> + free-electron's guys.

Hi Gentlemen,

Any feedback on this patch?

Thanks!

> On Sun, Sep 07, 2014 at 08:57:54PM +0200, Alexander Gordeev wrote:
> > Moving MSI checks from arch_msi_check_device() function to
> > arch_setup_msi_irqs() function makes code more compact and
> > allows removing unnecessary hook arch_msi_check_device()
> > from generic MSI code.
> > 
> > Cc: Thomas Gleixner <tglx@linutronix.de>
> > Cc: Jason Cooper <jason@lakedaemon.net>
> > Cc: linux-pci@vger.kernel.org
> > Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
> > ---
> >  drivers/irqchip/irq-armada-370-xp.c | 14 ++++----------
> >  1 file changed, 4 insertions(+), 10 deletions(-)
> > 
> > diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c
> > index 574aba0..df60eab 100644
> > --- a/drivers/irqchip/irq-armada-370-xp.c
> > +++ b/drivers/irqchip/irq-armada-370-xp.c
> > @@ -136,6 +136,10 @@ static int armada_370_xp_setup_msi_irq(struct msi_chip *chip,
> >  	struct msi_msg msg;
> >  	int virq, hwirq;
> >  
> > +	/* We support MSI, but not MSI-X */
> > +	if (desc->msi_attrib.is_msix)
> > +		return -EINVAL;
> > +
> >  	hwirq = armada_370_xp_alloc_msi();
> >  	if (hwirq < 0)
> >  		return hwirq;
> > @@ -166,15 +170,6 @@ static void armada_370_xp_teardown_msi_irq(struct msi_chip *chip,
> >  	armada_370_xp_free_msi(hwirq);
> >  }
> >  
> > -static int armada_370_xp_check_msi_device(struct msi_chip *chip, struct pci_dev *dev,
> > -					  int nvec, int type)
> > -{
> > -	/* We support MSI, but not MSI-X */
> > -	if (type == PCI_CAP_ID_MSI)
> > -		return 0;
> > -	return -EINVAL;
> > -}
> > -
> >  static struct irq_chip armada_370_xp_msi_irq_chip = {
> >  	.name = "armada_370_xp_msi_irq",
> >  	.irq_enable = unmask_msi_irq,
> > @@ -213,7 +208,6 @@ static int armada_370_xp_msi_init(struct device_node *node,
> >  
> >  	msi_chip->setup_irq = armada_370_xp_setup_msi_irq;
> >  	msi_chip->teardown_irq = armada_370_xp_teardown_msi_irq;
> > -	msi_chip->check_device = armada_370_xp_check_msi_device;
> >  	msi_chip->of_node = node;
> >  
> >  	armada_370_xp_msi_domain =
> > -- 
> > 1.9.3
> > 

-- 
Regards,
Alexander Gordeev
agordeev@redhat.com

  reply	other threads:[~2014-09-15  8:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-07 18:57 [PATCH v2 0/3] PCI/MSI: " Alexander Gordeev
2014-09-07 18:57 ` [PATCH v2 1/3] PCI/MSI/PPC: " Alexander Gordeev
2014-09-15  2:42   ` Michael Ellerman
2014-09-15  8:34     ` Alexander Gordeev
2014-09-07 18:57 ` [PATCH v2 2/3] PCI/MSI/Armada-370-xp: " Alexander Gordeev
2014-09-08 11:16   ` Jason Cooper
2014-09-15  8:36     ` Alexander Gordeev [this message]
2014-09-17 15:55   ` Jason Cooper
2014-09-17 16:17     ` Alexander Gordeev
2014-09-07 18:57 ` [PATCH v2 3/3] PCI/MSI: " Alexander Gordeev
2014-09-23 20:58   ` Bjorn Helgaas
2014-09-17 15:25 ` [PATCH v2 0/3] " Thomas Petazzoni
2014-09-23 21:01 ` Bjorn Helgaas

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=20140915083636.GD8793@agordeev.usersys.redhat.com \
    --to=agordeev@redhat.com \
    --cc=ezequiel.garcia@free-electrons.com \
    --cc=gregory.clement@free-electrons.com \
    --cc=jason@lakedaemon.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=thomas.petazzoni@free-electrons.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

Powered by JetHome