Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2196868rwd; Sun, 28 May 2023 10:02:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+2NRKv/nD3+zVkMorfzZcYOyjmv9Y1BqhYa4ciV8nQMY5zh9hgZblK2c2tDeUaRuAilMi X-Received: by 2002:a17:902:eecc:b0:1b0:2d08:eb51 with SMTP id h12-20020a170902eecc00b001b02d08eb51mr3815078plb.12.1685293337630; Sun, 28 May 2023 10:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685293337; cv=none; d=google.com; s=arc-20160816; b=MIXUW8/RBaV6EjAcvILI84lDEwVeLb9apKG5GlDxpLzuzQNieNhgF1qCW6tYdkt9PD xez07m7gXWyYOaBxdnScJmWQcHTaLnkIkZZnhgSGfOkLOnT/GsqU100U/avIvscyO1rv hvhypRxKOtZYTMYs495EUv1XW0pzEZi+78H0eqgvy/rGouPiCtR9eMi5y3rTMtHYALyU u/HOmElhaB5O0S0ffV5ksn7HEQdJDLADRoRW9mH1M5WERM5lVNBaiDvxi9M+cBGLhnmR Sy5GUx0jh/CQmp2g0heTfgkrWlcxrX8wsuovNF4Tab/nBdjJU/Ggeg/SmXX5vnfxg/Z0 gGlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=jyevN1PY91xdgyGHEtcHc8GD9uiOcFwYC1Ca7KmvkMI=; b=UKBmUwGHfwEK0G/yc1AedSJ3eNxnANH5lEUygG89rzQcqJZE8sqFyTRDClbAnE6d+P W9LmdDde+Rde5FoYDqQT4vW+ITkt/4FZgPhYnkCcLD5pHsG5xuCXMO0aUUEKim5FB9dk Ea1+0mHY6ZNDYJC30Vt8Wwsm0m/nZEo357eGffvJVHYb7q1jWTXLmYmDX1LXCwMjPRy5 kCo83yuJig+hiNLh7x4nYe7bbbhVPkwSUMiqXBOwpA4CPL6+UXwjR5DO/2saMWLZ6e6S Sbvp1Zi2fT6+6vVlDCIy+QFoG85IIsQbrXFxLBPVvp4o+aJ9JcOvkB6NzA5e1wi8Uibc Enpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="vE/zGI6P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a17090a9b0e00b00256750a8f18si956033pjp.137.2023.05.28.10.02.04; Sun, 28 May 2023 10:02:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="vE/zGI6P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbjE1Q5N (ORCPT + 99 others); Sun, 28 May 2023 12:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbjE1Q5L (ORCPT ); Sun, 28 May 2023 12:57:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAC9FAD; Sun, 28 May 2023 09:57:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 717A76112E; Sun, 28 May 2023 16:57:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6F60C433EF; Sun, 28 May 2023 16:57:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685293029; bh=+hWlogpsHCsoKplEv/92cr5w/RkOgzEL9FTtd9IUdlA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vE/zGI6PJoizrumVsABEYxWZWkx8NssyJ8jedEzsoTKTu2P91Z7zKOqGTY/t5LRwO vxwIoxcigc2J8mjbzCzA3c2AUZpCbFRTYAiG2OZW3NyMWyZ/fHWqZ2mC3yfWh2BU1S fdtt28fjgYscnYHQAh6tQS31vjDFyqAJdrP8HvOwuxNsD1aMNamwkHJqZAlWOWpNNF XqcSzFaWqmkBmD/uJuZXNoXlZa43UVIdFrUXZpM93NKu9DSvBNUGurdssDsxETI2Mo r55oVQgTw/qb9/fagyXMH1Yv57zvtCG3jR6D6zAawFMt108KTZdETGe6mU9mOb0A0p Hm3cV3AKBKJ6g== Date: Sun, 28 May 2023 18:13:25 +0100 From: Jonathan Cameron To: Matti Vaittinen Cc: Matti Vaittinen , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J. Wysocki" , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Andreas Klinger , Marcin Wojtas , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan =?UTF-8?B?TmV1c2Now6RmZXI=?= , Linus Walleij , Paul Cercueil , Akhil R , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-iio@vger.kernel.org, netdev@vger.kernel.org, openbmc@lists.ozlabs.org, linux-gpio@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH v6 5/8] pinctrl: ingenic: relax return value check for IRQ get Message-ID: <20230528181325.405d9dad@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 May 2023 09:38:39 +0300 Matti Vaittinen wrote: > fwnode_irq_get[_byname]() were changed to not return 0 anymore. > > Drop check for return value 0. > > Signed-off-by: Matti Vaittinen > Reviewed-by: Paul Cercueil > Acked-by: Linus Walleij > Reviewed-by: Jonathan Cameron > --- > Revision history: > - No changes > > Please note, I took Linus' reply to v4 cover-letter as ack && added the > tag. Please let me know if this was not Ok. > > The first patch of the series changes the fwnode_irq_get() so this depends > on the first patch of the series and should not be applied alone. > --- > drivers/pinctrl/pinctrl-ingenic.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/pinctrl/pinctrl-ingenic.c b/drivers/pinctrl/pinctrl-ingenic.c > index 2f220a47b749..86e71ad703a5 100644 > --- a/drivers/pinctrl/pinctrl-ingenic.c > +++ b/drivers/pinctrl/pinctrl-ingenic.c > @@ -4201,8 +4201,6 @@ static int __init ingenic_gpio_probe(struct ingenic_pinctrl *jzpc, > err = fwnode_irq_get(fwnode, 0); > if (err < 0) > return err; > - if (!err) > - return -EINVAL; > jzgc->irq = err; > > girq = &jzgc->gc.irq;