Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6839059rwd; Tue, 6 Jun 2023 02:42:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bYDFmBULcj+9g85jAdz+GcqwecVFAuAYed8501BdNURxcnEua2wXDJEwQoeG23XRkvaXb X-Received: by 2002:a05:6a00:1794:b0:64d:632a:d0ac with SMTP id s20-20020a056a00179400b0064d632ad0acmr2017128pfg.25.1686044529741; Tue, 06 Jun 2023 02:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686044529; cv=none; d=google.com; s=arc-20160816; b=I42axTnfXDQ8XdqxzFDIX6gj0e9uORcXJYvzeY9GxpiFeM3tfRJSYchnrWV695bTHq P9O+ACzW2xbXMUWkyMtTdPZZ5Yh+36djGoKsLux3iLq3qi9+6rMLD31l2WXjaJ5Rrfg+ rXgfgfZn33ZqeQxAZ0RnjVXZ7PZjyjKGnDAn0PepakcinoRX9y8vAUQQLCjJc2onikxp mTh+rntPrmg5Uwwrai03B0ezmZk6Y0rO5wWBLNEhkN7wg75OoLY+Qe6VyILHzqkSF0eB PmG3vXk+MPmzyX4rFRi4lCa8rQ8wF49V1Lx6S1yyFIpSO7Xr7JyL7EFeZrBZeB+0MEQw 1jUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from; bh=g6jU8DiABhCOnyLNHb2kgyGf6XvaVPLZDnVWlILnWD4=; b=QrrS1J9Ep1il9lWd6peJijirL+Ma8mYEw3Fu6UVtMzGl9yN1FbLJGvWzZrZX1S2YNg P+GzN4u0FSfyvdoyXndrH5up0I7uka0ImrJ+eJnzSAWlRJqt4i8nhPiUwv7VgxbybFQ8 sTATFjeaBu8UPrcqXkfkLTWhSuwQ1D5L9w8NCafbbVAegvbNEKBlft4zhxuxjABoLJ2b EFGgZWdbxVrUNz4/D8Rdw/2ZwYhEBgxdGlMNQOx9SZ9MphMcYdTH3q14SmZhYg+P4QkG 3XHQMFdT0y5z0qBekJUVWVO9lTUmtboDDyZVZh0/Rd6pA0K3RXNn34cQsoRNruu2ksBN y5XA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 j190-20020a638bc7000000b00543fccebbb1si295712pge.284.2023.06.06.02.41.57; Tue, 06 Jun 2023 02:42:09 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237457AbjFFJ2X (ORCPT + 99 others); Tue, 6 Jun 2023 05:28:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231766AbjFFJ2W (ORCPT ); Tue, 6 Jun 2023 05:28:22 -0400 Received: from fgw23-7.mail.saunalahti.fi (fgw23-7.mail.saunalahti.fi [62.142.5.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA0CE5F for ; Tue, 6 Jun 2023 02:28:20 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id 77eae969-044c-11ee-b972-005056bdfda7; Tue, 06 Jun 2023 12:28:18 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Tue, 6 Jun 2023 12:28:17 +0300 To: Jiasheng Jiang Cc: andy.shevchenko@gmail.com, oe-kbuild-all@lists.linux.dev, linus.walleij@linaro.org, brgl@bgdev.pl, palmer@dabbelt.com, paul.walmsley@sifive.com, linux-gpio@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] gpio: ath79: Add missing check for platform_get_irq Message-ID: References: <20230606031841.38665-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230606031841.38665-1-jiasheng@iscas.ac.cn> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Jun 06, 2023 at 11:18:41AM +0800, Jiasheng Jiang kirjoitti: Is this v4? > Add the missing check for platform_get_irq() and return error > if it fails. > The returned error code will be dealed with in > module_platform_driver(ath79_gpio_driver) and the driver will not > be registered. No, this functional change and has not to be for the fixes unless _this_ is the regression you are fixing. Did the driver work before at some point as after this change? Otherwise you have to _justify_ that this functional change won't break existing setups (with broked IRQ in Device Tree, for example). -- With Best Regards, Andy Shevchenko