Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2272459pxm; Fri, 4 Mar 2022 12:50:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+gHz8+rjfXwPc3aiGCMecDpAEmwsLmJ7qWgKwJKPTEgKgWmIanCpEmt6HbGjWS7V3wWiR X-Received: by 2002:a17:903:1108:b0:151:9c42:7d1 with SMTP id n8-20020a170903110800b001519c4207d1mr188908plh.54.1646427001879; Fri, 04 Mar 2022 12:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646427001; cv=none; d=google.com; s=arc-20160816; b=UkOeK/rLRv/2T+4OCJo9iJVTB7/9hRTtkGaM22ESpRFgku/5e4/zCwoeXs5l6M0C52 5mAlQKbwC4AfctO2pzPhFEljxoRAprnacxxxl8+GvlHF0cr8wUQWv2JZ4osDiMFaBvfF LXKSIqrIlzWHSHTmXSNNwiZUYd+gX5U4aWjlETM6ZwvFzxKxlS15geJK+XBpAhwSRRhY ZSKmQQpg2Y0tf3VHLaKyDIMvPH7n3mljpoHluie2niXVIlSWlJzkZ2YGJPHOssGm+oU+ Vc4J0QMcDakabKQnBj3AJO2ytN3F9qEt/gzMIvd0lSvvyd31mi3G3dQePY0qB8+G6Y7F Flrw== 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:from:date:dkim-signature; bh=HoxDP47wqXEu0AmgKYamEJFwf5FDVzD05GhPqV5AtPI=; b=KOBwgSgJlazhTy5Zbc+cW5MS6IwD9XBnQV88IrNW4Lh0V9mCeTkFJP4UjDfGaA5CKl 6uh1uUIttnBmJREKmMoj5TQ7dAK/lASLMx0m2qCYxOYKHuOy7IdqlNNY+Sfksv+G5rZe WtWEay4xdq0F5h5u+NblN/bmxu2HD4BE72gIv4GANvkTyVK+ufFnE9iRPtkIQP2pjSAV wAgc46WvQbV5S+1Iw97luwk9ZsG8q0tlZG3ru8RQe7bd3iq0Ndw00venOUN5VwiTpmYY h6vRIDSc6OXbpgnvDaTUiw6ZUTBiQY2FljHZbcpguiv7pT/e12CXqNMlLuPHUAM1J49P 43mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=wx+UegTL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y8-20020a170902864800b0014db0a0280csi5048228plt.607.2022.03.04.12.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:50:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=wx+UegTL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4CE921CAF14; Fri, 4 Mar 2022 11:47:05 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237634AbiCDOYF (ORCPT + 99 others); Fri, 4 Mar 2022 09:24:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbiCDOYE (ORCPT ); Fri, 4 Mar 2022 09:24:04 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BA0FEBAD9; Fri, 4 Mar 2022 06:23:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646403797; x=1677939797; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=U4D+rWZDzGJXpcju3PJJJDSxJtaedGVbYtfFx7f1Xio=; b=wx+UegTL2z1UHegJM4dmqz1WGCQQhKF4/ayfK8Zf5yvHoUTK3Oy/VJFs I7N77c995k52aYl73jtMOkWB+XlpYlhreTDZkDUgyuEaieBS8AbT9+lPw 0JCw585xUIz9m+xf0vTnwkWvrJ4JD4a7LL5MdobvgU//hZRJXDK3ZAZ3h qmFcRNgVyKvEaxWzWSIu6bwb3w3I/i0VtMGLhyoSYrUxwnkdMF7e5yetF w36+JyuAqtjBHI60PM4a+eEtGeH9LS3/Bp2nFCqEehaaV2s4GfiuCPURD ZS0wTdMb6U0+oapsx9/M+xMQXa9J+54pP/tBUYQZAMM4csVPJyZCtRnjB A==; X-IronPort-AV: E=Sophos;i="5.90,155,1643698800"; d="scan'208";a="164545832" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Mar 2022 07:23:17 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 4 Mar 2022 07:23:16 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 4 Mar 2022 07:23:16 -0700 Date: Fri, 4 Mar 2022 15:26:06 +0100 From: Horatiu Vultur To: Andy Shevchenko CC: , , , Subject: Re: [PATCH 2/2] pinctrl: ocelot: Fix interrupt parsing Message-ID: <20220304142606.3yxwah4k36deqa3e@soft-dev3-1.localhost> References: <20220303203716.3012703-1-horatiu.vultur@microchip.com> <20220303203716.3012703-3-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 The 03/04/2022 14:41, Andy Shevchenko wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > 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? It can be used. I will update this in the next series. > > -- > With Best Regards, > Andy Shevchenko > > -- /Horatiu