Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4254104rwb; Tue, 6 Sep 2022 05:07:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR7uhZ6O7SU0+i9qZQzTOvPHbqlWlyH7BBuMqg9SSGJAfJ/haxK/s5BaHAUIYuVZKW/UFDRu X-Received: by 2002:a17:907:2ccc:b0:741:990f:fe48 with SMTP id hg12-20020a1709072ccc00b00741990ffe48mr27833940ejc.390.1662466023641; Tue, 06 Sep 2022 05:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662466023; cv=none; d=google.com; s=arc-20160816; b=ntFlLjvX7B3rgqZIwgvnWp9oJtLtSCxEReViTrWY91qw/54agAZNvZ/kmdtbkEqg+5 Mcybwd0nX7bKsQz8m/8IsPxqbwP0zmpFSCvLsnjX98y4b+bGqVtMzlOgraN6mjKqX1Mi 5syecMf8sR/2OSIS34KQNXdXtk0AbKWFtcdQBOg/yBk5KkUOemoxi5fms6EvDSdOnQH3 KApDf9/lkFL7P9aRIv984B7I5k57a2uTtiXJ9pAvlEfNvK2YccNMi9CwJAGbcjAmIOiH QvDRUXPbecMA4/9n5TpKSt4Zc5q3QN1RPfzyJTOygjAaTBpTxf5fTAl1Hm8tB6TNJ6X6 UEyA== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=JtXsWtdepuJiHP9jV5S0y+ozbzU/PM79yQzCj/q5wtE=; b=O0yX0FJnCQqrMYxa0l9EkIRVq8Dfj0AS+/Qu5E9QyU67o1XuTaKTLgqi+VT5y/mX6n V9a+CCMoY+GbuUjYZiG/Rmv2iRyL9IOJmyMe2FHGXjWvH8/CdlDCAdSsg9K9qpkzUdQf faozLa0nCjKFPiLhvyu/PGt+DDjrg6BLLYTYQ5YUcprhX2s9iKS1R+wPNG9p8yQManMB CdN8nn5doDlIC2FbGTTxVbixmLOzQ1tubjCDgqzQTIyxrCJFHa+EJUBaaXEv4MDiNsVS cVowldzHu6XEx5Oz4NQo6hWjBFF62gZ7enw3S8iVIot5veXdNgf24/aq5GEGFzLkj9C9 HP2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LQmo1Ths; 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 t9-20020a056402240900b0044e6e22c4aesi5274195eda.284.2022.09.06.05.06.37; Tue, 06 Sep 2022 05:07:03 -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=LQmo1Ths; 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 S232700AbiIFLrt (ORCPT + 99 others); Tue, 6 Sep 2022 07:47:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232406AbiIFLrr (ORCPT ); Tue, 6 Sep 2022 07:47:47 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B367B41D2C; Tue, 6 Sep 2022 04:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662464864; x=1694000864; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZFdAqLLCkAK18dTg0m9aGKuAoPgAnLxj5S7NDofG9Z0=; b=LQmo1ThsyO5x/8M/mv8jXowR6x/kLHpYxuWkTPBvWKzkX+fi2heAQzaL DzGee0KJBhlZuSLTnLbYXlMScgG//UG1eJOFOAkBVckz5cgRRI+RCIXkn rX4Xw24+unJSLIJVLZG4DMMee7N5vOGuAF2pRhUY4wtRnp3+cvbkYB1u4 vPvsgtrCHmil/9w/FHBGTY202qzs5l7L132g7kC0SpeMEsuasJkozdZ43 NJKz6c1mEz6sIWvTjh+2ZFBay+smGhuS2ycfq5jJPO3F+2xbB67gyPyra lJ1hyDfiU39F4zXBVQ+SHbmn6FIOKw9a8xdBBP7qUNo4T6FdrIeBge56p A==; X-IronPort-AV: E=McAfee;i="6500,9779,10461"; a="279585983" X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="279585983" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 04:47:43 -0700 X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="682371275" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 04:47:41 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oVX3K-009663-1t; Tue, 06 Sep 2022 14:47:38 +0300 Date: Tue, 6 Sep 2022 14:47:38 +0300 From: Andy Shevchenko To: Michael Walle Cc: Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Lars Povlsen , Steen Hegelund , UNGLinuxDriver@microchip.com Subject: Re: [PATCH v1 1/1] pinctr: microchip-sgpio: Correct the fwnode_irq_get() return value check Message-ID: References: <20220905190849.73194-1-andriy.shevchenko@linux.intel.com> <21f2241f19003a1210bd475883ee077b@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21f2241f19003a1210bd475883ee077b@walle.cc> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 Tue, Sep 06, 2022 at 12:24:43AM +0200, Michael Walle wrote: > Am 2022-09-05 21:08, schrieb Andy Shevchenko: > > fwnode_irq_get() may return all possible signed values, such as Linux > > error code. Fix the code to handle this properly. > > > > Fixes: be2dc859abd4 ("pinctrl: pinctrl-microchip-sgpio: Add irq > > support (for sparx5)") > > Signed-off-by: Andy Shevchenko > > Reviewed-by: Michael Walle Thanks! I will send a v2 since I have to fix a typo in the Subject. > Btw. do we care about EPROBE_DEFER? In the original code this big (unsigned) value was added as parent IRQ and things wouldn't work, with the proposed change IRQ won't work, but at least in robust way without any surprises (whatever big parent IRQ number mean). I think the people who have access to hardware and different configurations of the kernel may or may not add the support later on. -- With Best Regards, Andy Shevchenko