Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp733165imw; Wed, 13 Jul 2022 07:06:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vwXJedv+13q6LCe2pYxbGMEjkKpqiikDzOKzRfhuiF7sdKgyJo1I6NDyfTpK7KgQ2JOGMO X-Received: by 2002:a17:903:18c:b0:16c:51c6:675d with SMTP id z12-20020a170903018c00b0016c51c6675dmr3262567plg.153.1657721177958; Wed, 13 Jul 2022 07:06:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657721177; cv=none; d=google.com; s=arc-20160816; b=JxbSS7Sc/cqcruNUGzUkMCEacMRCSeGAuMPpscawuhC+HA4qSvQZQO64LB6LJthDsw d4BShYA7SAY9YVZWAJD26wVDKeKf8ULCohvUiGwRonGZl7FsD35RwcMT20uK/YdbgNZ2 sHPZn5w+HNQPKFVKECYh1zTv8ZBxlBkOvBCA/Bte9LdPdDpIIqE6kfsOJWg1QBga5Neh Ws4LdjYhTPqYPiNqW3BZNxVvoSrmhVF9nQMSw6NLM0OdaIlCX//ln9IEiyYaDzZBiHdB RkqHgfnxDP9uJ2RMGVTripeLWZMwCFBC8zBFEKRh6/fUjNCdJoeMX3WNyxnrEthgYIIm lluA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0zNovvnxCNltl7nyjpskv1bB6kdfvO0KEYNKQKCXFpg=; b=mRQMFZ56lMlRoJyBrhV+kexJ9wmfIcP1TJtJqZnuAfk2Y/6ty5WIsYQHNBW1ZWFdZ7 YMP/pvsfMtYteO029X5Ho/3CnueURFaWxHLPwwhyGOm7Z9LdKl94okzQ7sznaBxvOW+C TBvc8Fl8HAqYyR9N3WQh4ofg6nhUXEdfyWKoIy51gkW6LjCny/f+YOUNRG00PU+qeAfX NDTuQzDpNg0ESjDX6mTSVnZjOmRFVhv0y1nY0qa03Dv2fU1IZu5OF+WP9Ohc0F9+wNO7 WL0ofbJJ+bfR4V+4xNAjuDdwBjjn4lPbVA1SawaPwH+SJac6K92hHEF9tkpbgc0UW95+ u/PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BRJedK9D; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jc2-20020a17090325c200b0016bf01a662asi15105819plb.499.2022.07.13.07.06.04; Wed, 13 Jul 2022 07:06:17 -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=@gmail.com header.s=20210112 header.b=BRJedK9D; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232875AbiGMNfF (ORCPT + 99 others); Wed, 13 Jul 2022 09:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233976AbiGMNfA (ORCPT ); Wed, 13 Jul 2022 09:35:00 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DF75DF35; Wed, 13 Jul 2022 06:34:58 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id o26so8577774qkl.6; Wed, 13 Jul 2022 06:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0zNovvnxCNltl7nyjpskv1bB6kdfvO0KEYNKQKCXFpg=; b=BRJedK9Dm0ysBh2ysd8qA02jK/r4tE7oohouS0ATC1cZ54BWUlj7IbOtdUBSyUKhRZ ZP3a0P3VMwNVCkuRG+sSNo012rQndOMPw79APKXM+aKY9XEOs3tdwis3lB8p9gELuC2N J90a51xczKganDu0vuoADeholu7dvtPR9VxvRqQEcuDQLu58WyS1sGvb4DBRn25xJDmp GU+/jBq5/F7bJVhTZa6oPew3PaK2mfX7Lmx5EUYI1jVFjh4PwPFMnUHO3ptKLpC/Kwve gNxGOZLMROO4iHGx1117HIvj53pycNxnXy/wm3rR2T95kcYKhf7hq468QoGFeZL8eZ+k eCXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0zNovvnxCNltl7nyjpskv1bB6kdfvO0KEYNKQKCXFpg=; b=wqgICEEyH2iROvmWUhVlLCynPucFPrqlP46v2T7mbZ/OFaGUghTSW04FH/0puZOIbL Ew7VJ2YZZFRRI6oFhSrnZ+HNu79AjYqC9Qb2dJ5Kqw9yXHd8Kb93lAFH9uWzwEUl5+O8 UFanr/1W8IdIdB7HnsGUUArSo1C40AzBJRQVrjCzMxWAInGaVj+12U0jKgf3aox/6Jgn Ll/DWzSyJWJ7i4aXZdMwZXb8nDtDrcveoLa+gs6r0j9vDYarz+A3uf9MFBfxZxuWBwCt 7UdTKDXHU+gp6T7aWONjHEZ/PUAZ/39VRBL4a6qs2AVpgpsRAT5BwgsjsEFx001vih6a j+Rg== X-Gm-Message-State: AJIora9aP7Ggy3lyH8F3jdDvuIIE7BgM9g4XusblzO2zIqMYgD06PL2d 0e4doLqrkUEChOdPm6L7NljVWDAvNgU2T/5eHoZAkxAvfQ2zwA== X-Received: by 2002:a05:620a:1a2a:b0:6b5:93bd:b662 with SMTP id bk42-20020a05620a1a2a00b006b593bdb662mr2364604qkb.522.1657719297138; Wed, 13 Jul 2022 06:34:57 -0700 (PDT) MIME-Version: 1.0 References: <20220624195112.894916-1-robimarko@gmail.com> <87edyq1ujr.wl-maz@kernel.org> <20220712124445.GC21746@workstation> <87czea1i2f.wl-maz@kernel.org> <874jzl17lc.wl-maz@kernel.org> In-Reply-To: <874jzl17lc.wl-maz@kernel.org> From: Robert Marko Date: Wed, 13 Jul 2022 15:34:46 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: qcom: spmi-gpio: make the irqchip immutable To: Marc Zyngier Cc: Manivannan Sadhasivam , Bjorn Andersson , Andy Gross , Linus Walleij , linux-arm-msm , linux-gpio@vger.kernel.org, open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 On Wed, 13 Jul 2022 at 15:10, Marc Zyngier wrote: > > On Wed, 13 Jul 2022 13:33:32 +0100, > Robert Marko wrote: > > > > On Wed, 13 Jul 2022 at 13:47, Marc Zyngier wrote: > > > > > > On 2022-07-13 12:08, Robert Marko wrote: > > > > I will look at IRQ GPIO docs, but in this case, then we have more > > > > conversions that > > > > are not correct. > > > > > > Then please point them out. > > > > Oh, now I get the issue, I was misunderstanding it completely. > > gpiochip_enable_irq and gpiochip_disable_irq are not being called > > at all. > > > > However, I dont see them being called before the conversion as well. > > I am not really familiar with the PMIC IRQ-s, looked like an easy conversion > > to get rid of the warning. > > They definitely were. Look at how gpiochip_add_data() eventually ends > up calling gpiochip_set_irq_hooks((), which hijacks the irq_chip > function pointers to insert the calls to these helpers. Well, that is the thing, since irqchip->irq_enable and irqchip->irq_disable were never populated in the SPMI GPIO driver, gpiochip_set_irq_hooks then does not insert them. During runtime, gpiochip_irq_enable and gpiochip_irq_disable are never used even before the conversion, that is what I am trying to convey. > > This is what this conversion process is all about, and you absolutely > need to understand that code before blindly changing drivers to squash > a run-time warning. Yeah, I agree, hopefully, I am not annoying. Regards, Robert > > M. > > -- > Without deviation from the norm, progress is not possible.