Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2285426rwd; Sun, 28 May 2023 12:06:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bZMXAq0LFV3XgyuCN1svtXctU+HcFIH8mvhuPW/nKW0fG7kL7IV7NFL8uqLqtprGnp35H X-Received: by 2002:a17:90a:8d09:b0:252:a2e5:4c3f with SMTP id c9-20020a17090a8d0900b00252a2e54c3fmr9608487pjo.25.1685300772052; Sun, 28 May 2023 12:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685300772; cv=none; d=google.com; s=arc-20160816; b=PRJATS+t80P/XcU2nWfSXjbkQLHyHRZzy1M79HsoBetmi6/dN474p/9P+xkyd8Zi4S j3DvCtj+0XWVCciUoZvuZpAThbMZeAw+gWVl6rRMxf4SsmXRxCjELELw8Bc7jQDER725 pcwByDeoAKisyz+qT7N7W2ut/eBnkXDLvIt0FMyn5os0kyQLngGTzqUpmbSslh+CQNZg syvS1ByS5jcd0z14DHlXlHLS6OWJy+CZqmEfXqfqCQ5KJt/6mDeNNZNi2eBps8yLmVCz 2FUTG2AKVPjiUKKNWn5NIo/P77XSj+QSIijRPV8rsODC53GvJ5bhJk8zZ5gG6yijI0fm 6wKQ== 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=aSVj+vDCskASKpwBXRr3L0Obv8U1ZIl3Zolz+COhEZY=; b=G3c0IJRo7dFhYH96XBaHaEOkB/1MqDmue1sO+d6O2FGY17aprC64n2zaXhdagG1cs6 ZDSgj10ONM1b57Gqg3EvYHXgXdNu160XzWuXWeKXjDK7AitQo8ScU1/uFiIOCjmri1JZ pyZ9U62IlHEVsj/bZB7AuApLVyVYB8FZYsR/jrzZk2jsizBPh+r2hwKNtdWVjMHrcmoI IYe6FaucKdIGS23BgPn/sXeb74jw6Yh6XyFyr5IWxHNUgs7LuG3hG0NZ6bIE05/uC9qt RBvUGF6oxQAZbRU8DeVHMW3fRHlOralrxlXDTtsZ237t0K9mqP80MqLg6htLI7MXYYuT X5FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M2UobjnC; 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 o21-20020a17090a9f9500b00250a2c9a793si1686344pjp.152.2023.05.28.12.05.38; Sun, 28 May 2023 12:06:12 -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=M2UobjnC; 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 S229627AbjE1S5z (ORCPT + 99 others); Sun, 28 May 2023 14:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjE1S5y (ORCPT ); Sun, 28 May 2023 14:57:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AEF0C4; Sun, 28 May 2023 11:57:53 -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 8193B612D2; Sun, 28 May 2023 18:57:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94DE1C433EF; Sun, 28 May 2023 18:57:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685300271; bh=KlKvkfbT2430hhOEgYoBgaDnMkWkALFfhUEwavNOtLg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=M2UobjnClAfdfRy0Po1wB9j4LPI1N+oqswdAWDqt6VvPCaO7OlScQ30yw/RhSHaEu lsgW+G+F0PJKP8QE11DiFsqDihh3DhP41ymAXDJNHdGDmFDXplhKp4bKw3wtgfGWcO FgP1RbgQnCoHx6Oq/RW5Uy7bMTLnxl7XUpgbaUv/Ge7t8prNuHv0hBE0Lp9YTCudoB s3gsXWGzVcW+JtuAoFKNTYZiOOOYFzLt0banqQ+4C+bNMPf8s11KiKv3JiiF59CTJE IAsLu/M9AfvMc3TIGJFwQ2UoNnox4CUMbr8W2ili6BGzFeqACokV97xYERRJLSBtE5 Hjq6j7Ri6XWJQ== Date: Sun, 28 May 2023 20:14:07 +0100 From: Jonathan Cameron To: Matti Vaittinen Cc: andy.shevchenko@gmail.com, 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 v5 3/8] net-next: mvpp2: relax return value check for IRQ get Message-ID: <20230528201407.394235f5@jic23-huawei> In-Reply-To: <6e94c838-886d-3c58-3fa0-175501f57f56@gmail.com> References: <7c7b1a123d6d5c15c8b37754f1f0c4bd1cad5a01.1684493615.git.mazziesaccount@gmail.com> <6e94c838-886d-3c58-3fa0-175501f57f56@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=-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 Mon, 22 May 2023 08:15:01 +0300 Matti Vaittinen wrote: > Hi Andy, > > On 5/21/23 20:19, andy.shevchenko@gmail.com wrote: > > Fri, May 19, 2023 at 02:01:47PM +0300, Matti Vaittinen kirjoitti: > >> fwnode_irq_get[_byname]() were changed to not return 0 anymore. > >> > >> Drop check for return value 0. > > > > ... > > > >> - if (v->irq <= 0) { > >> + if (v->irq < 0) { > >> ret = -EINVAL; > > > > ret = v->irq; > > > > ? > > For me that seems to be correct, yes. This, however, would be a > functional change and in my opinion it should be done separately from > this API change. Ah. I commented on this as well in v6. Roll us that separate patch and I expect we'll both be happy ;) Jonathan > > > > >> goto err; > >> } > > >