Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp773867rwr; Fri, 5 May 2023 05:02:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7BRRH73l0nm04KkrCt7/mW/EpUDpu1XVjJv2iPU6DM7OIihFuU3JLj3K+OQjtaPZqmFCtd X-Received: by 2002:a05:6a00:1503:b0:643:96e:666b with SMTP id q3-20020a056a00150300b00643096e666bmr1773890pfu.34.1683288140783; Fri, 05 May 2023 05:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683288140; cv=none; d=google.com; s=arc-20160816; b=peJlQXl5BT3zzsZB8bd4soEvP3ayzbgCgWm1oC10MNtL/ERIa52g0KAsoeuitPULMc fMaTdB9jw2vtIYUTsmdhXEJbjF2fqJNzgt1Sg3FejlMZ948olGwrGwVSMyW2om0MiHLX DYdE2Zo+1gnsUForYQMw/NhTUgDkydQ06JfLhv+K5AbZiLdhCk1CRhPxwRe9RSQC+BkN EcgnnOuR8tl5QGxTtiz8AULpRgJaBBKIBztk596RcybWpleM8WB0y9YolK4Go5ZV84sZ +rJIMNBwY3uepVKr+33kXGoCIFxxrL3zW2ZN6tz4LlTCXDqn9VL0G0LdmcLR2UBxmhlr KM9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=riNetgoJcVW6a6DuMCUs2l//EH5X9sZZhCmoZC/wZtA=; b=YKTS4ibtacG5Mu0MgFIvUwu8mQOa6n+gzBZv7ayb2+3AXxRS5SzmiOdVvLEux7Pmwf jPWtfCEj4kMi6qr+DvULnU4OaBwTVzwLr7q2W3FbAM/G87kFgLCRqU0qUmNZE2EqvSO2 I3q5lInxNqJKAv9+Q83fMWA1KMutBOdHq4ZZ3FKG/97JeLpXRHYgFQNBbe/qxVdIJvFY rgY6Dy2in9vSidULRztA/QWVCSjwKuT7lpobE+a2gmtdsmKJb3zi5OOV7z3CYFiVE7NQ rPUQCZkqKArNE8VZ9MUkrk6Bv/0vi0qrMUBHIcGrapRM65/F/gzTdV3a4VgQQgy4FDFx dJEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jvSrvaBz; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a621b0c000000b006361df3aa86si1818364pfb.88.2023.05.05.05.01.43; Fri, 05 May 2023 05:02:20 -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=@linaro.org header.s=google header.b=jvSrvaBz; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231996AbjEEL5D (ORCPT + 99 others); Fri, 5 May 2023 07:57:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231964AbjEEL46 (ORCPT ); Fri, 5 May 2023 07:56:58 -0400 Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6082D1A613 for ; Fri, 5 May 2023 04:56:54 -0700 (PDT) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-559e317eef1so23585197b3.0 for ; Fri, 05 May 2023 04:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683287813; x=1685879813; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=riNetgoJcVW6a6DuMCUs2l//EH5X9sZZhCmoZC/wZtA=; b=jvSrvaBzv4UqZQ/pXfgqcYA84wDKXRYKVeq+J9Y6EO2kkzLR588MvOv7oMD2FHiqF2 tJ3KF1tMlXylCDT6+cO2pr7qRdZ6whvm22ezoL79V2hHURzl1AbsjYiTJSWN1QOwUxfY 36yEdrdk06U78dunF8NvCeLt1OVOcA9Xyrhn1sr0Qxtn/EpqlOhR8kcC7B/GstMSpczN zME4s28tN0oNUOMAb8ENT+ncwaksEhzm1iyfn5ltrGFjN41/4p2rfF2n/Ygb31gGj2Ny aqfFdbvN9Egt0P2ie4Wc5PhsS+vkpWR+TEPAT46NCA+FyNUKfCF7+GTF7s77NCTYUOYn U29A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683287813; x=1685879813; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=riNetgoJcVW6a6DuMCUs2l//EH5X9sZZhCmoZC/wZtA=; b=itMfuLJbFz+Mf9nTdcnWtPUOUZJVNv+uBK0Pst8k1DmcVR6tOAgfOneM9KDdap/H19 /QuaWXmHw/LnAl7eOhZSEYR4v2FqP77nrmytYRHse5BqypAqTUsvbJRkxTRqyiBClLRr EyU0Rvktp+j2zQ5T8kwdCXz5Zjo1YKUx6SxbxCY6LSN/0m3A7vYaWijGFM3Sq8sNOBr4 yT/KxwsdDudNp458vMrthWKBhamnjBde4yUdKOOmC4olZuS3T9N4lg5lRoX5eG1cwEA5 7dg8xolr8B22O7xp46GfWBhYoGY5eC9VY7gzPnFl8KJlOYyXbM3EjdpG8rBRvDesRxdK PckA== X-Gm-Message-State: AC+VfDx6y9mCkpOW+/wx7HTdv3mBBHfb/QDt1A4COZAyQgaN9sT//aLh agY56Qcdkg0jmPrX3eMnuxTZcRkcllKANlwsk4OoNA== X-Received: by 2002:a0d:f383:0:b0:55a:ad0a:76c with SMTP id c125-20020a0df383000000b0055aad0a076cmr1076896ywf.18.1683287813578; Fri, 05 May 2023 04:56:53 -0700 (PDT) MIME-Version: 1.0 References: <1681311127-6891-1-git-send-email-manikanta.guntupalli@amd.com> In-Reply-To: <1681311127-6891-1-git-send-email-manikanta.guntupalli@amd.com> From: Linus Walleij Date: Fri, 5 May 2023 13:56:42 +0200 Message-ID: Subject: Re: [PATCH] gpio: zynq: fix zynqmp_gpio not an immutable chip warning To: Manikanta Guntupalli Cc: michal.simek@xilinx.com, michal.simek@amd.com, git@amd.com, shubhrajyoti.datta@xilinx.com, srinivas.neeli@xilinx.com, brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.goud@amd.com, manion05gk@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 Hi Manikanta, thanks for your patch! On Wed, Apr 12, 2023 at 4:52=E2=80=AFPM Manikanta Guntupalli wrote: > Make the struct irq_chip const and flag it as IRQCHIP_IMMUTABLE to fix > "gpio gpiochip1: (zynqmp_gpio): not an immutable chip" warning. > > Signed-off-by: Manikanta Guntupalli Don't you need to also add gpiochip_disable_irq() in the .irq_mask() callback and gpiochip_enable_irq() in the .irq_unmask() callback as we do in most other conversions? Example: https://lore.kernel.org/linux-gpio/20230414-immutable-irqchips-2-v1-3-6b59a= 5186b00@linaro.org/ Yours, Linus Walleij