Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2478815rwd; Wed, 17 May 2023 10:14:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IaynrSqahE5X2m/ljFoJIbWWL3jmfGA/mkbvhoShUxFGC1x5iZ1Xl6OvAELiC99LmlDM/ X-Received: by 2002:a05:6a20:8412:b0:101:7e8e:445d with SMTP id c18-20020a056a20841200b001017e8e445dmr37476370pzd.19.1684343676193; Wed, 17 May 2023 10:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684343676; cv=none; d=google.com; s=arc-20160816; b=pvZ70fqo82xH4eayEQHn+leYknLlwnV5EsH8eCwrx4uf0f0cFUsBY8zfalnhcA7E3R 9o6a6mXWI4XvVloOVbWlTZO2JnshrZa74q2DNY/FpXXiPW1Lp6uTCOnoaoFnb0+fOdon x7Rcy/DuKj/A6KkREli16oGpEpbDQllE0R0C0AycQvKTkALOBPuG5IB2OxkvC9WagOqs x4wTVJowOBsNFE/9TKS6qmM6VESC7PWQMg7lXp9OiGD1AVdC0Q6ONXtyDhdiDyOd42oe Y/BfypepyGwK3+NjUC+COpgMaHrwkK0cfJeOfz8dJWstO9V8vfMfjC6143fS/r2m4cis tfrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dlfBFbgRfAt6E36L+Joux9hFMn9VUCiz08b2yGL5MgE=; b=IR/3GRLCHk4UDlExFBPPMpUsXbgA78Tfb/iwCVTSEKFv2tiD8bABrsxpaBSKYdAddM VnRbAL1BLtVHD3g+g6TBX8VNHbGST63UKIy6ZNnuVp9LFMAPXp6Os2t1w6G//OqI8CjG 8/WgXijpL6luv/luIO/BPoY5X1CsmcgEXS4WQ2DofSuxj2rpri+X5IPA6BeXw6rqjGQR hR33Y8L0jqRSvdFRDDvvZQDtmAgS+dTiT9XNkmWMRhweeLt2f2pnHjIxlxntci+7SL5n G6FgZIiPuZy7/QayDWeDK15QN6VOke+mUVGTq7sPF+cSOzgXGbSqjiIPJxqwf90akgxC QV2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kRcCOgBg; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw13-20020a17090b180d00b0025345363ef3si1997771pjb.115.2023.05.17.10.14.24; Wed, 17 May 2023 10:14:36 -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=@intel.com header.s=Intel header.b=kRcCOgBg; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229572AbjEQRDn (ORCPT + 99 others); Wed, 17 May 2023 13:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjEQRDm (ORCPT ); Wed, 17 May 2023 13:03:42 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70D989E; Wed, 17 May 2023 10:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684343021; x=1715879021; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=2y9dc4fvVXmSayb63VV0cFv6otKKoZXMYMxw98nbiUY=; b=kRcCOgBggZt0gF/jc+KW4oVF1X8CHd4VGfx3lWlIry/tdwVU8QS/zubG xe0NQamEfwys21whCOa/0Qc3+3/TlThDBOoEixu2sjuhLRfisygi2U0Qj KATSMUNpuTMJtvFlraIFdbbEN+YtVp4kg9kBxskU0+Nknp9FUWg1tqeTD /Dy7tCw4fzxFq9Oey4h2ippE57VfKzI8DvXoK+2HSSLOcAQBYv5Vcx8fs YkcV0hdQdmaIzyu/2Jy5/4EWYJdgApN8RCZ2dc30mYa/XcJMpfI7fbOjv zxuaFLH2WY0lTYl0/FCWjdBs3ub7IFe0vUri4fykpr9pksi8HI70Cftpr g==; X-IronPort-AV: E=McAfee;i="6600,9927,10713"; a="351840399" X-IronPort-AV: E=Sophos;i="5.99,282,1677571200"; d="scan'208";a="351840399" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2023 10:03:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10713"; a="813944402" X-IronPort-AV: E=Sophos;i="5.99,282,1677571200"; d="scan'208";a="813944402" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP; 17 May 2023 10:03:31 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pzKYi-0008V6-2X; Wed, 17 May 2023 20:03:28 +0300 Date: Wed, 17 May 2023 20:03:28 +0300 From: Andy Shevchenko To: Jonathan =?iso-8859-1?Q?Neusch=E4fer?= Cc: Matti Vaittinen , Matti Vaittinen , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J. Wysocki" , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Andreas Klinger , Marcin Wojtas , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Linus Walleij , Paul Cercueil , Wolfram Sang , Akhil R , linux-acpi@vger.kernel.org, linux-kernel@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 v4 4/7] pinctrl: wpcm450: elax return value check for IRQ get Message-ID: References: <2d89de999a1d142efbd5eb10ff31cca12309e66d.1684220962.git.mazziesaccount@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, May 16, 2023 at 06:32:09PM +0200, Jonathan Neusch?fer wrote: > On Tue, May 16, 2023 at 10:13:14AM +0300, Matti Vaittinen wrote: > > The special handling in this driver was added when fixing a problem > > where returning zero from fwnode_irq_get[_byname]() was treated as > > succes yielding zero being used as a valid IRQ by the driver. > > f4a31facfa80 ("pinctrl: wpcm450: Correct the fwnode_irq_get() return value check") > > The commit message does not mention if choosing not to abort the probe > > on device-tree mapping failure (as is done on other errors) was chosen > > because: a) Abort would have broken some existing setup. b) Because skipping > > an IRQ on failure is "the right thing to do", or c) because it sounded like > > a way to minimize risk of breaking something. > > > > If the reason is a) - then I'd appreciate receiving some more > > information and a suggestion how to proceed (if possible). If the reason > > is b), then it might be best to just skip the IRQ instead of aborting > > the probe for all errors on IRQ getting. Finally, in case of c), well, > > by acking this change you will now accept the risk :) From my side it was c). > > 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. > > Thanks for investigating this! > > It's not a), because there are no existing setups that rely on broken > IRQs connected to this pinctrl/GPIO controller. > > I suspect b) or c), but I'll let Andy give a more definite answer. -- With Best Regards, Andy Shevchenko