Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1970016pxm; Fri, 4 Mar 2022 07:05:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJz38C+cUJL08j88URu7WWJWnI/BuLUTfBqJIXr/+kEzJ/ap3yF1wTmUCNA2SIaBij1ehZI7 X-Received: by 2002:a17:906:facf:b0:6cd:ed0e:ed7 with SMTP id lu15-20020a170906facf00b006cded0e0ed7mr30828189ejb.376.1646406310743; Fri, 04 Mar 2022 07:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646406310; cv=none; d=google.com; s=arc-20160816; b=fjfKxiPO4atW7lMx3xkCQ2SPSvZBdsG0Zb6hatuqzCLqe9YctyC0LJEPvI1unPl6RB lpMaHfSMPCkehUFXPBYLBZJUdQDW/IKrHkFzFm7wZhqUrzGtKnHdsYJc3bdYvohHhBN9 5YkCxKXkpXIswG4km9ZnpTUB7AnAj4+/LT1fiVhQ5uHvZPKgTEHNNChAhOnNV+OOaARj N1j4CLw7Vbr/5Kitg/SK6FF//lZtSdUbQto2Y3aDsxyxttnWrhSA/JEBJ1wcnma5HxC/ hmGyuwET5FohuB2IXJ5MbpALqzkNG+71NFPi8AsNBwEUusDshBCtpmFHtUVx13cUBNkU caZQ== 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=2btfwrfZOVQGi2ZFf2aBf5b3LtZ23GyucUt/MQQTiF8=; b=lz4gH6Mkp9gFBm7E+Gxf0eUML7qztw/e02n3yhwK50TTmrTg9Nc8JhE9+piVVB0Bb+ LF/D5ZYi27EiUK/4FQPp+wlerepl/zIq0QZIxeZObtPOfDODRX3HatvsOtLiHabf1o3l wGb9XW3b9h/3ZJ9uGC299+d7w3x3w/QCJqzyg1/hiwakGGge2tgGVIzgdBt0CRT+eUNs 9hsMhzCSTjQRoUTKComgLdp30zySvmP2cLQdB55hoc9LUu7qhodMGbEHrHuNhQbDQCvb 2HOfT9dM0j9s5+K/y6YufzR0jwgmtAgkN91O2iK6DqxxG7veyaCztWOCAps+S/hvx8HI 8iug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VgBnHHwX; 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 v29-20020a17090610dd00b006d08c9350ebsi2934860ejv.640.2022.03.04.07.04.46; Fri, 04 Mar 2022 07:05:10 -0800 (PST) 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=VgBnHHwX; 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 S234032AbiCDMmm (ORCPT + 99 others); Fri, 4 Mar 2022 07:42:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233456AbiCDMml (ORCPT ); Fri, 4 Mar 2022 07:42:41 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C2231B3A53; Fri, 4 Mar 2022 04:41:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646397714; x=1677933714; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4tToEW6BUY+JQKKIOnbayADvzQCRUYzF46ca/0eu8mY=; b=VgBnHHwXfLeN64VPLO+Ht5OsmUsXKC7aWcMv44L0P9OzWH3/abatRjZ5 vMvMs5KipcN8m5Qn3gKClfIkZ267wXYli/CJxDUMlFP4tpNajnyBK097e uooEF/804DqVGDAR9OrZ9A39H9SKghwl+t0I69giurHVDyh2d7V4cHuJs zPbVJoT4qAYs3+jhOG+MN/J4PzinWuvQKcDm8XZ2bjWo+tr+l2UkPmIHt sRIu7tcEpUibUa13zeInlkJTbRfiSt2CMv8Nv1H9PmTZ5K1ecOD+z0Cbc 25tvdJyWV+jvfYML3v6RZHa7RcjnXV8Wf4gTpC0+VXiDuLhF/P5g8889L Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10275"; a="340398127" X-IronPort-AV: E=Sophos;i="5.90,155,1643702400"; d="scan'208";a="340398127" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 04:41:54 -0800 X-IronPort-AV: E=Sophos;i="5.90,155,1643702400"; d="scan'208";a="494318508" Received: from smile.fi.intel.com ([10.237.72.59]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 04:41:52 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nQ7F4-00BDfD-MH; Fri, 04 Mar 2022 14:41:06 +0200 Date: Fri, 4 Mar 2022 14:41:06 +0200 From: Andy Shevchenko To: Horatiu Vultur Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, colin.foster@in-advantage.com Subject: Re: [PATCH 2/2] pinctrl: ocelot: Fix interrupt parsing Message-ID: References: <20220303203716.3012703-1-horatiu.vultur@microchip.com> <20220303203716.3012703-3-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.7 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 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 Fri, Mar 04, 2022 at 02:40:38PM +0200, Andy Shevchenko wrote: > On Thu, Mar 03, 2022 at 09:37:16PM +0100, Horatiu Vultur wrote: > > In the blamed commit, it removes the duplicate of_node assignment in the > > driver. But the driver uses this before calling into of_gpio_dev_init to > > determine if it needs to assign an IRQ chip to the GPIO. The fixes > > consists in using of_node from dev. > > ... > > > - irq = irq_of_parse_and_map(gc->of_node, 0); > > + irq = irq_of_parse_and_map(info->dev->of_node, 0); > > Why platform_get_irq() can't be used? Or actually _optional() variant of it? -- With Best Regards, Andy Shevchenko