Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2473647rwd; Sun, 21 May 2023 22:22:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7iCSr2psRD17sZvL3qVLDeaOZFBP2AZY1ii3OtzDH1C3JManhsvcGw3ZLF0liXd14wVgFP X-Received: by 2002:a05:6a20:a128:b0:10b:bc54:e4b4 with SMTP id q40-20020a056a20a12800b0010bbc54e4b4mr1724227pzk.37.1684732947493; Sun, 21 May 2023 22:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684732947; cv=none; d=google.com; s=arc-20160816; b=mmDrA/e8ZkE2RQd5If/JJWGJHu1S9KZWgo/IZ3ocaFXBHZmeS4LyoL0JL9UMxtIuE7 EtQfUzrkVb2+M1HgLUUouEgTvZtD5XAdb0dMD3jYJ2PkZgPHnCzf2QP0qSia3Ji0ZNxw nE++klAkuK0n9/TsajIKgl5N4+SJTKS9LE+Z9gubz2ZyI7QDpe3szw5e+50FbhYNnP6U zoMuzFQG7RjuRUUc9BKawiatdGKsS6NzRsi6Fckk/mYH/wear1yYeATUNJ4eNmPaqOSm oyXvaoqjGjNa5N16ceE0X9v/P1GU4nh9vZF/pKakHeqyYQZGcRMNy7qC/RL6VnaVvnL7 mSPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=THeH3RaWIynHSwKlX2svi0BhR2aQmOxVPDuj7iF+9CU=; b=QZCSCGi3hSlxNaLOi4EXMAyFM4XUEqTq6c0mTK3PPoKvw/fgduPtSaSAoL1AdbKIjY 1ka+3uC0IUkUIfVUS4CAYUhFC92hTH3ep51Zu+6CCbyErUcKSh7wgJWw08ll7u8YrsO8 kh2k0YKygaLjamNOGJJ/FkPMCr2FcdRt0JJmxRHEyY3aSsFR8WpfW4UMZIOc4HNmpDO4 jiTyMlw7zDLJ2KT1EYAPYSZfCGGgzlPugUoiLM8hheRQyKfYL6glZXfe5zsCEJuCOBFj Vw3kVWq2Ak0+13uKSEmsn/ipneTBPW8TXDk+SaG0I0w1x6lmIHgKxdyudI3o6GwxJzHJ sKug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZqV07oiU; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s132-20020a63778a000000b00534e310d0d3si2651558pgc.588.2023.05.21.22.22.15; Sun, 21 May 2023 22:22:27 -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=@gmail.com header.s=20221208 header.b=ZqV07oiU; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231699AbjEVFPN (ORCPT + 99 others); Mon, 22 May 2023 01:15:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231565AbjEVFPJ (ORCPT ); Mon, 22 May 2023 01:15:09 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4B8DA8; Sun, 21 May 2023 22:15:07 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4eed764a10cso6139730e87.0; Sun, 21 May 2023 22:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684732506; x=1687324506; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=THeH3RaWIynHSwKlX2svi0BhR2aQmOxVPDuj7iF+9CU=; b=ZqV07oiUpM3rILlXqiJZcvZs4BY2Wdo63On6RQdrE8STzFBrWyFHKIPPNXKkRO6Gvt mbGkZIkauYLN3xSuiN8fkHrSFbhA5jzMGKeyo484SpfGQruznb6mn7gNrjUeDIrSkIGX dlG8V/BzfTXS/r7oxA+5L6h/uyjxk7nNm6BgvUwVwE9MhXQMPf199v/bAmht+pNhU1zC t7V83cf6gRnHSU7MAQgZLwlVe3lSVCHlwaECFx2k7IAUpAyNzzwBjU+/v7nzxRXzOG+M hgWPMLpCViBPf3MXbqZBF42jGpbw5Gtc93kjHj10ERwx4epMKFiuBx45hsCgEP0H8gZk b0rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684732506; x=1687324506; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=THeH3RaWIynHSwKlX2svi0BhR2aQmOxVPDuj7iF+9CU=; b=SfpEkEjif476u8zfyZJesnvaxCPiAEN6mzzz7TfFlqd1zim/k2O6WrIjO+/dtfCOog 3df2hKRFd2J7pgQvnqDUO0Bpfozd7RJrdcK3ez1j6eBEvhgUDnjvLEZKVo7f8Dxvnv6k MdrRGvlUfsa7sjAoxJ9evMS5o2fa+9rMrSqxsuIX0Dgq49RSXEmoWtgi61Z6Vme/L0m0 BXr+wsll21KZ48y2so+xXBypajDU7yU3XvUW8xUJlT6xLALakraVNYw57EfeQV4bZiJO 1yPT8qwMGX6Icwi7izNhBVQqg5qfrw0BgrDjRAytzcCGnVukANxuTahO5G4GloAwWzdL 937Q== X-Gm-Message-State: AC+VfDxOYPn7p0B9BQJupUV2dz4uiYOIkNxduKbPd4KTRhLeDjUe5ZJH O38H5y3pfAJ1wpwEVQUgrtg= X-Received: by 2002:ac2:4907:0:b0:4f4:af57:19af with SMTP id n7-20020ac24907000000b004f4af5719afmr576935lfi.2.1684732505853; Sun, 21 May 2023 22:15:05 -0700 (PDT) Received: from [192.168.1.126] (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id n15-20020ac2490f000000b004edc55d3900sm850247lfi.0.2023.05.21.22.15.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 May 2023 22:15:05 -0700 (PDT) Message-ID: <6e94c838-886d-3c58-3fa0-175501f57f56@gmail.com> Date: Mon, 22 May 2023 08:15:01 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v5 3/8] net-next: mvpp2: relax return value check for IRQ get Content-Language: en-US, en-GB To: andy.shevchenko@gmail.com Cc: Matti Vaittinen , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J. Wysocki" , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Andreas Klinger , Marcin Wojtas , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= , 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 References: <7c7b1a123d6d5c15c8b37754f1f0c4bd1cad5a01.1684493615.git.mazziesaccount@gmail.com> From: Matti Vaittinen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 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. > >> goto err; >> } > -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~