From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F31ECC433E0 for ; Mon, 4 Jan 2021 14:44:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BD749221E5 for ; Mon, 4 Jan 2021 14:44:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726512AbhADOo4 (ORCPT ); Mon, 4 Jan 2021 09:44:56 -0500 Received: from os.inf.tu-dresden.de ([141.76.48.99]:42446 "EHLO os.inf.tu-dresden.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbhADOo4 (ORCPT ); Mon, 4 Jan 2021 09:44:56 -0500 Received: from erwin.inf.tu-dresden.de ([141.76.48.80] helo=os.inf.tu-dresden.de) by os.inf.tu-dresden.de with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.94) id 1kwR5X-0006T1-5s; Mon, 04 Jan 2021 15:44:03 +0100 Date: Mon, 4 Jan 2021 15:43:58 +0100 From: Adam Lackorzynski To: Bartosz Golaszewski Cc: Marc Zyngier , Thomas Gleixner , arm-soc , linusw@kernel.org, Imre Kaloz , Krzysztof Halasa , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , linux-gpio Subject: Re: [PATCH 5/6] gpiolib: Fix return check of __irq_domain_alloc_irqs Message-ID: References: <20210102175859.335447-1-adam@l4re.org> <20210102175859.335447-5-adam@l4re.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0.2 (2020-11-20) Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Hi, On Mon Jan 04, 2021 at 14:57:31 +0100, Bartosz Golaszewski wrote: > On Sat, Jan 2, 2021 at 6:59 PM Adam Lackorzynski wrote: > > > > 0 is not a proper IRQ number and also indicates failure. > > > > Signed-off-by: Adam Lackorzynski > > --- > > drivers/gpio/gpiolib.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c > > index b02cc2abd3b6..9667e1a62626 100644 > > --- a/drivers/gpio/gpiolib.c > > +++ b/drivers/gpio/gpiolib.c > > @@ -1003,7 +1003,7 @@ static void gpiochip_set_hierarchical_irqchip(struct gpio_chip *gc, > > &fwspec, > > false, > > NULL); > > - if (ret < 0) { > > + if (ret <= 0) { > > chip_err(gc, > > "can not allocate irq for GPIO line %d parent hwirq %d in hierarchy domain: %d\n", > > i, parent_hwirq, > > -- > > 2.30.0.rc2 > > > > Does this commit depend in any way on others in this series or can I > apply it directly for fixes? It is independent, you can directly apply it. Thanks, Adam