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


Groups > linux.kernel > #1477563

Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Lee Jones <lee.jones@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check
Date Tue, 06 Sep 2016 17:50:01 +0200
Message-ID <seqNj-3PR-27@gated-at.bofh.it> (permalink)
References <seoiu-2rH-31@gated-at.bofh.it> <seos9-2uF-5@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=TH2JtfZIH9F+EI6ijLqSiNWXn+RksLCT4atg0JdS0K4=; b=PA4wNWFitrj7PRNIt/T9uybhRhlKnhWOVNUL+AYxfzbRfQDELhcGR5S6DptpLgxxaM R1QAaxgkQVbHxIJ08ZqxC7r9h6gCy1FFBri8TeXBNjTp9Xp1g7HeCyNI8IIop5yCNqxN WT5oAI+TdD7gCZewqFJYSTxSqdd2nJUtG4ruI=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=TH2JtfZIH9F+EI6ijLqSiNWXn+RksLCT4atg0JdS0K4=; b=BHN5X/nSsqSEER57d6j2BfRAZzYM/JVaa6kOBjjAaBn55UJ/BZi4B98EXE0HimfXC0 bPbxbksmoepbVabm5KYdhbTNBJXxVX0wJScveiSSya6mTwhZFX3NjlNQR66BIMoWVSY9 YqwUs0ZWzN7wnRyQIfcJuEdDYB5vQ/9R3xUn5CswTOy2mMjBN6pRycC3jSn2M62820AZ rLYOHguqA+lumK/8WaaQU0wu9OIMq45PzTR4sj9iaWxOmyer+T/sONWZ519dsfS8TeLD sHu+w2WAs3aO2BV+nUZpgNXs4AHYVDAHicP8kN6i801WBDHwpXtX8lvuZfLov1S90N4V 16fg==
X-Gm-Message-State AE9vXwMibpu4OkGcDLPRzbHWJRE82a0pCcKhK8Va6+2KqTE1Bcn7Dw7I1NE03T4tUMsMfJkn
X-Received by 10.194.57.244 with SMTP id l20mr36663251wjq.1.1473176618042; Tue, 06 Sep 2016 08:43:38 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent Mutt/1.6.2 (2016-07-01)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 47
Organization linux.* mail to news gateway
X-Original-Cc Arnd Bergmann <arnd@arndb.de>, Linus Walleij <linus.walleij@linaro.org>, Hans-Christian Egtvedt <egtvedt@samfundet.no>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, linux-kernel@vger.kernel.org
X-Original-Date Tue, 6 Sep 2016 16:45:30 +0100
X-Original-Message-ID <20160906154530.GW4921@dell>
X-Original-References <20160906130409.1691750-1-arnd@arndb.de> <20160906131730.GV1041@n2100.armlinux.org.uk>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1477563

Show key headers only | View raw


On Tue, 06 Sep 2016, Russell King - ARM Linux wrote:

> You need to send this _to_ me as I need to merge it with my other
> changes.  This patch on its own does not make sense - it only makes
> sense with the rest of my SA11x0 patch stack.
> 
> NAK for Lee to merge this.

So if I were to accept this patch, would anything break?  In other
words, is there an ordering issue where this this change relies on
something you have in your tree?

> On Tue, Sep 06, 2016 at 03:03:57PM +0200, Arnd Bergmann wrote:
> > probe_irq_off() returns '0' on failure, not NO_IRQ, so the check
> > in this driver is clearly wrong. This replaces it with the
> > regular '!irq' check used in other drivers.
> > 
> > The sa1100 platform that this driver is used on originally numbered
> > all its interrupts starting at '0', which would have conflicted with
> > this change, but as of commit 18f3aec ("ARM: 8230/1: sa1100: shift
> > IRQs by one"), this is not a problem any more.
> > 
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > ---
> >  drivers/mfd/ucb1x00-core.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/mfd/ucb1x00-core.c b/drivers/mfd/ucb1x00-core.c
> > index 48bea5038654..d6fb2e1a759a 100644
> > --- a/drivers/mfd/ucb1x00-core.c
> > +++ b/drivers/mfd/ucb1x00-core.c
> > @@ -537,7 +537,7 @@ static int ucb1x00_probe(struct mcp *mcp)
> >  	ucb1x00_enable(ucb);
> >  	ucb->irq = ucb1x00_detect_irq(ucb);
> >  	ucb1x00_disable(ucb);
> > -	if (ucb->irq == NO_IRQ) {
> > +	if (!ucb->irq) {
> >  		dev_err(&ucb->dev, "IRQ probe failed\n");
> >  		ret = -ENODEV;
> >  		goto err_no_irq;
> 

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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


Thread

[PATCH] mfd: ucb1x00: remove NO_IRQ check Arnd Bergmann <arnd@arndb.de> - 2016-09-06 15:10 +0200
  Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-09-06 15:20 +0200
    Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Arnd Bergmann <arnd@arndb.de> - 2016-09-06 15:50 +0200
    Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Lee Jones <lee.jones@linaro.org> - 2016-09-06 17:50 +0200
      Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-09-06 18:30 +0200
        Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Lee Jones <lee.jones@linaro.org> - 2016-09-07 12:30 +0200
          Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-09-07 13:30 +0200
            Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Lee Jones <lee.jones@linaro.org> - 2016-09-07 14:50 +0200
              Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-09-07 15:50 +0200
                Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Lee Jones <lee.jones@linaro.org> - 2016-09-07 17:10 +0200
                Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-09-07 18:10 +0200
                Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Lee Jones <lee.jones@linaro.org> - 2016-09-07 18:30 +0200
                Re: [PATCH] mfd: ucb1x00: remove NO_IRQ check Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-09-07 18:40 +0200
                rfc: Updating SubmittingPatches with [RFC PATCH] and/or [WIP PATCH] Joe Perches <joe@perches.com> - 2016-09-07 21:50 +0200
                Re: rfc: Updating SubmittingPatches with [RFC PATCH] and/or [WIP  PATCH] Randy Dunlap <rdunlap@infradead.org> - 2016-09-07 23:50 +0200

csiph-web