Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2192834rwd; Sun, 28 May 2023 09:58:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6j/3O/WcYbYttFmhYkSV9xZp2tE5Us/VRi6ranyQJewN1G7D0udxnubFpMsR1NjCcYW1kr X-Received: by 2002:a05:6a00:1a12:b0:64d:5f1d:3d77 with SMTP id g18-20020a056a001a1200b0064d5f1d3d77mr11495123pfv.34.1685293084540; Sun, 28 May 2023 09:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685293084; cv=none; d=google.com; s=arc-20160816; b=h2ercF3DZDs6+FY2TuR7fWhbm6yZMA6HqkxkumLVk+qr7KK3Y+c9xA14gP/58tVibJ joLHcBIQc42V3zOkFau46mTxDaZk4YVETvRKvtllOhx543NBlMnmcKoLLLj0x/tdcmcP 35D1XF1ZtudqZdht1aLui3b78ZZwqmbf5ks6rSsuKNMz+VmozB8Uzz+hGXW0Zb1Z73X2 c+YxX1asE9Krd1zrCIVQFzcApnC6VLu3RDUWEtRGAAT/0unjY5BFfeKDssrIPVFEcxat wHntCK2EEWzjeH2p9RdL2hqsPhTXlw4L2R4dYDqzsVRbRoKOLP3yeM4mCPWWRszF85GB a+Xw== 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=BLEacbd/rwRUAb7pgT3yEm6cSSybEWVPKPJfuzVE/do=; b=MDQu5JZxWf4ZLMWuLC54qIJcru8/Sz3SUyQYoDwtXw8cNbbOoUCtuaK3ZopISXNOQC ThyNEtsG6gkam9JihWMoOR50k1CFzeG630w5nzktBvFzUo86tG9JMSkyKtZcAzeutHkl W6fdHuYE54d/wODy8zLVp02SwrtR/ae/s1VuR3qV3JZGZ5UJqOJFHWHI3TzuOKwAlmuG LkL6QqkQIxK6lMVTnSyXjxmDm6mHMd10aYEM+v/vz4Ku+R/C6Ygt6gAhkTI9v4SJOEbv CaUaqL3KlnAsh1KNczBy2nZlRj90HE5C52PNXOIsNbsynAbARQa0iGUR78E8PZJV7C3z mjjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O2VgmX3N; 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 l65-20020a639144000000b0051fb9c77447si8138767pge.477.2023.05.28.09.57.50; Sun, 28 May 2023 09:58:04 -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=O2VgmX3N; 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 S229749AbjE1Q4Z (ORCPT + 99 others); Sun, 28 May 2023 12:56:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbjE1Q4X (ORCPT ); Sun, 28 May 2023 12:56:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4C4DBE; Sun, 28 May 2023 09:56:22 -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 340B3617CE; Sun, 28 May 2023 16:56:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EFF4C433EF; Sun, 28 May 2023 16:56:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685292981; bh=ueGDUdIeFC8AHXZQLlvav2knW6JGEKxFPJUhzpfVMiE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=O2VgmX3NqDU6FDQv1qfNmkSIil1QyaOIm90W15IyaMF/S6AxlfLyuDD1K2FTZbN+Y sbh/Vb1Oy93kUveqWRE2xFt2mmTvP0H59Kr1GZ1q9xfM2tDVP7EnsvllAq9xmUe85f v2vGec/1yPvRCSdvAhIIM5+XvsY+5wTjFvVJH/2/86ISZcWua9Kx6etJxJ8LWZRA1K ikdl5TEyC5lsRuk4NilIwnJYJgdDsk5rAtLa2wBXia2QCNAS1xhiWGnrMXPznrle6B 7MFUOI6+3HUOcAw9zmzyYwktXGCH3Ny3BTWUQe1vAza+pL7+4g2In3pVsIpBYxYfz+ wlEe8OI2U2Udw== Date: Sun, 28 May 2023 18:12:37 +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 6/8] pinctrl: pistachio: relax return value check for IRQ get Message-ID: <20230528181237.5fc6f5d9@jic23-huawei> In-Reply-To: <9db9653eb33d345d305e918215216348a8f193da.1685082026.git.mazziesaccount@gmail.com> References: <9db9653eb33d345d305e918215216348a8f193da.1685082026.git.mazziesaccount@gmail.com> 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=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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:58 +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 > Acked-by: Linus Walleij > > --- > 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. Whilst I understand your point as Linus said he'd pick the patches up, I would have left it to Linus to Ack explicitly but added a note here to say he basically already did. LGTM Reviewed-by: Jonathan Cameron > > 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-pistachio.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/pinctrl/pinctrl-pistachio.c b/drivers/pinctrl/pinctrl-pistachio.c > index 53408344927a..8c50e0091b32 100644 > --- a/drivers/pinctrl/pinctrl-pistachio.c > +++ b/drivers/pinctrl/pinctrl-pistachio.c > @@ -1393,12 +1393,6 @@ static int pistachio_gpio_register(struct pistachio_pinctrl *pctl) > dev_err(pctl->dev, "Failed to retrieve IRQ for bank %u\n", i); > goto err; > } > - if (!ret) { > - fwnode_handle_put(child); > - dev_err(pctl->dev, "No IRQ for bank %u\n", i); > - ret = -EINVAL; > - goto err; > - } > irq = ret; > > bank = &pctl->gpio_banks[i];