Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6854938rwd; Tue, 6 Jun 2023 02:59:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7PWnhRxJSwqIr/mXPrFMsqleosYGabvMoOuWHVF+Odnh4O/rPjZhKu/hjzgdXX9HqeMsot X-Received: by 2002:a05:6a21:998d:b0:117:4d57:d3ad with SMTP id ve13-20020a056a21998d00b001174d57d3admr3619833pzb.3.1686045566770; Tue, 06 Jun 2023 02:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686045566; cv=none; d=google.com; s=arc-20160816; b=fAh+3bXGc52lZgeRb0Hsz8rMX/tpKYTinmpEpzvTGT6MbeKc/uWBKoTsNftngNoAuo jGnjHwJaA04qdOEn2epgQHV2cpz4FaGUXOIFHzaTQ96oNDChQqwQu4O2rMXNHAMwWg+n YEifDdZETAfVtO0wObBOS8Gl+cUE3ojP/yzv4hrZqjcvZVDg5dHMr3RAMupMM9J+vSLr BlNP/VTKn9JlrKheDdopjNmfBoz3kYHLK5P3IlIMpzSbOrcJtNWKGbDRvPVtosn1cpCV 2/baUHtPeHIRcKI2Wcc5CngwwUdBbdhzu60t2wcKzaSa8/5O23NxpkqK9KvRIJD/yuQ4 zHGw== 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=R4r0npNm30t68rJ/wtY6SREK/siGym91iE4C0v/Zzns=; b=LSVgKBKrB15mxAM+rAfupxUf8ipfL51vdXUJlr2ZYzYgtzaNdpuGb2VkkxunjKVbKe +qLZwNhFpyB4i0ygvrijm0LHha6V4mzydfRcWP6Y9jErIkbA7im94Bv/vFwnOPks5BCF e3HxLcxS2Kp2pceOFb3+4cjzv2MtRwrmXAI9Yymrtl2CrBvgPBLwxHbXf+vSq8OPMnrj GHMIsS2RCAqkEh96b5WA7zgX9oPPMK0jScVYFVOa1VCcmWlosHWRef7djHAg6N+R6Y89 6XX55B5jc9fN124r6xGq9VO5bVs5SS9WplPfpatf9jV9vFqqRXmJoO6WvJSiuyUnAUyr uzJg== 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 j14-20020a636e0e000000b00541bf36f2d2si7121939pgc.208.2023.06.06.02.59.14; Tue, 06 Jun 2023 02:59:26 -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 S232594AbjFFJqq (ORCPT + 99 others); Tue, 6 Jun 2023 05:46:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236400AbjFFJqo (ORCPT ); Tue, 6 Jun 2023 05:46:44 -0400 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50BCAE4F for ; Tue, 6 Jun 2023 02:46:39 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 074bd606-044f-11ee-b3cf-005056bd6ce9; Tue, 06 Jun 2023 12:46:37 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Tue, 6 Jun 2023 12:46:36 +0300 To: andy.shevchenko@gmail.com Cc: Jiasheng Jiang , 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: 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,RCVD_IN_MSPIKE_H2, 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 12:28:17PM +0300, andy.shevchenko@gmail.com kirjoitti: > 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? To be more clear, answer to the following questions: 1) does driver work with wrong DT configuration? 2a) if yes, does it make sense, i.e. the hardware functioning usefully? 2b) if yes, can we guarantee there are no broken configurations in the wild? Depending on the answers correct your code and/or commit message. > 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