From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sekhar Nori Subject: Re: [PATCH v6 2/6] This patch converts the davinci gpio driver to use irqdomain support. Date: Sun, 15 Dec 2013 18:06:01 +0530 Message-ID: <52ADA231.4080603@ti.com> References: <1385057731-4348-1-git-send-email-prabhakar.csengg@gmail.com> <1385057731-4348-3-git-send-email-prabhakar.csengg@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385057731-4348-3-git-send-email-prabhakar.csengg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: Errors-To: davinci-linux-open-source-bounces-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org To: Prabhakar Lad , Linus Walleij , Grygorii Strashko Cc: Mark Rutland , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, DLOS , Pawel Moll , linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Stephen Warren , LKML , Rob Herring , linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Landley , Grant Likely , Ian Campbell , LAK List-Id: devicetree@vger.kernel.org On Thursday 21 November 2013 11:45 PM, Prabhakar Lad wrote: > From: "Lad, Prabhakar" > > Signed-off-by: Lad, Prabhakar > [grygorii.strashko-l0cyMroinI0@public.gmane.org: > - switch to use one irq-domain per all GPIO banks > - keep irq_create_mapping() call in gpio_to_irq_banked() as it > simply transformed to irq_find_mapping() if IRQ mapping exist > already] > Signed-off-by: Grygorii Strashko A proper subject line is missing. I added the following as the subject: gpio: davinci: convert to use irqdomain and moved your current subject line to become the commit text. > @@ -396,6 +411,20 @@ static int davinci_gpio_irq_setup(struct platform_device *pdev) > } > clk_prepare_enable(clk); > > + irq = irq_alloc_descs(-1, 0, ngpio, 0); > + if (irq < 0) { > + dev_err(dev, "Couldn't allocate IRQ numbers\n"); > + return -ENODEV; modified this to: return irq; since your have already received a more relevant error code. With these modifications and Linus's ack, queuing for v3.14. Thanks, Sekhar