Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2204521rwd; Sun, 28 May 2023 10:10:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5EJi6j60QPHLVzbO3k01sMFHMU5jhPbSJ+tqghwYtLbXGBgJZySj8I5FWraDaK279Ci0JL X-Received: by 2002:a17:90a:9bc4:b0:253:8016:36d2 with SMTP id b4-20020a17090a9bc400b00253801636d2mr8495215pjw.43.1685293803367; Sun, 28 May 2023 10:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685293803; cv=none; d=google.com; s=arc-20160816; b=uw8kO9AOaSgLaZdVdYm8y0nnxHdL2lr/qarLMhCfGs8FaMQM0jea/0IQLfCRAgx4jC 5ncAVojYh0jQ6X3HdIZe6MSBei8RkQuspcd31dx3oe1ZkOI6z9Iwfo1XbVY+PBpuhMO8 U8qHKkiLMpPkIfzsT4deAzxqy8C2+JhpTA3X/f1hHWJQjpx2YcLTkMrWoSr5zuKEEjiK jC7mBGohUxeBHaD8y7PZMBxKSEF+7rUnF/BESBuMvL2PIjDFgjQMiXeLwTfClYQGBz2K 2K2P+lNAIFO9qS/kqVTHZkSw8+IfEdaFhjdD1UDdtx5aF6WfBUCgI7OvMqKegUnT+WhJ VGJA== 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=RCG28j8mzO245HK8POAj2Lle6bt5PFYBIjYfvfuzYnk=; b=ZnNhos4Pz2SEqzssdB4224Xhio4ctShLn2sorluBel4mn/75bYMas7GeSsXnpOI+hD yvKAzEfqR6aVNcIg24AANSdgfFlFC/Ho2wGDUCl7Y9G52KbqwDQJ/FcV2Va2tj6ZQ2gC dD5tjFzmUa7fzWHZoEHKtESsDnIKfP16HF8SfJEgbOl+Afhkzo7MjEs/H6ZfrMGPVFTi ipz5+Ii125bIHu1A4qWU8KD7aiyBtv+8PVJlXblmNkNsDB1zrlvdz4zWQ0kc1EkWmUEW bT/JCJgIh43wKVqHdhP8sJC6NmNBheu6ieGOxYCBpRrQrYf+8m3KDEV1uHgxHcNUWqak VfxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=drLgGpaW; 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 kk2-20020a17090b4a0200b0024e1172c1d5si6553224pjb.155.2023.05.28.10.09.47; Sun, 28 May 2023 10:10:03 -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=drLgGpaW; 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 S229658AbjE1RDu (ORCPT + 99 others); Sun, 28 May 2023 13:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjE1RDt (ORCPT ); Sun, 28 May 2023 13:03:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 010A0A4; Sun, 28 May 2023 10:03:47 -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 9693060BC3; Sun, 28 May 2023 17:03:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8CF4C4339B; Sun, 28 May 2023 17:03:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685293427; bh=z8cnynG0YqzbyS3wmg4WMqU8xEMm6lCe+QQT7lZn2hY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=drLgGpaWe2W3vJNqC777jZtERLTCi572SUkDnKdfwz9P//uCyZOZqzim2AzkBZlHJ LB2aKK5Bxi/8rql+oNynvOUYqikMHpPojtNSpbcVLX1vpD6OMBz81BAskhnTy78TSU h/R32K6weV9j/B///T1yICRLHWhHdwZ0N11/wE/W4JYByIGpCz26iFg+4eGwp1Trjt h9g1/48y6bJnGYUiZBwJ4Dlvmxbt8RE0I7zCZtWQTRVIhcrq5ACbiIkGFZ59V1q9JJ b06pkY7tlCEObYGlw535AJ4Gkxv5fp7DajRtNbl3SYSCoDMULEEgWryz7STAmPqS+9 F9rH/sc1kphWw== Date: Sun, 28 May 2023 18:20:02 +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 3/8] net-next: mvpp2: relax return value check for IRQ get Message-ID: <20230528182002.6252f3cb@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:36:57 +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 > Seems straight forward though 'maybe' nice to return the actual error rather than eating it. That relies on nothing up the stack handling resulting error codes different though. > --- > Revision history: > v5 =>: > - No changes > v4 = v5: > Fix the subject, mb1232 => mvpp2 > > 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/net/ethernet/marvell/mvpp2/mvpp2_main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > index adc953611913..5b987af306a5 100644 > --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c > @@ -5833,7 +5833,7 @@ static int mvpp2_multi_queue_vectors_init(struct mvpp2_port *port, > v->irq = of_irq_get_byname(port_node, irqname); > else > v->irq = fwnode_irq_get(port->fwnode, i); > - if (v->irq <= 0) { > + if (v->irq < 0) { > ret = -EINVAL; ret = v->irq; seems nicer. > goto err; > } > @@ -6764,7 +6764,7 @@ static int mvpp2_port_probe(struct platform_device *pdev, > err = -EPROBE_DEFER; > goto err_deinit_qvecs; > } > - if (port->port_irq <= 0) > + if (port->port_irq < 0) > /* the link irq is optional */ > port->port_irq = 0; >