Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED157C636D4 for ; Wed, 15 Feb 2023 10:18:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233914AbjBOKSV (ORCPT ); Wed, 15 Feb 2023 05:18:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbjBOKST (ORCPT ); Wed, 15 Feb 2023 05:18:19 -0500 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA55932CD3 for ; Wed, 15 Feb 2023 02:18:18 -0800 (PST) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-52f1b1d08c2so131899237b3.5 for ; Wed, 15 Feb 2023 02:18:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vJBqbA9/1u4A8sVO/Zk715/WabHxkSgMgrFN8Htu8mM=; b=WjVP6zmwugQ9MOW+plHy2OjEWtkW2pV2E+kvSjcZJCrqafoEfoyABgBc+weMQiblln QcXbBOqxbdSwv3ilQ5OpUKg0rJzIgO6XAQvJyO6dLRlWryae9iOsJ3ABu8Ry+1lOHF9i T41AcZ5jOPQkdbEMmdtqZ+BBsH1OJ7n7Rw86CUXbzH8cTVvlTmRQxVqan/zhhKANDUCa sIdHLC3ZqvYPG8OnsTAq/4EAyIRe6P0yftBIO+wN9HwyrR9pDtxBy21Br/JS7oh4EHJS RvgTIzjdqm4RmgLj44l81AJOch3tI2ublUs8ZAii9AYsKpagh59sDrsaGrCY6QciAxFt eUuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=vJBqbA9/1u4A8sVO/Zk715/WabHxkSgMgrFN8Htu8mM=; b=NMI2uAMxz8+Aaj/NuiRB51LmpyF9+B1m6Y1b5GsW6265ffk9OL9MUXogrLfwkhOkq5 ESy1KqZetudUNxddf1OdxoRnkkAyD2huMlvHlSdR1CFAn8Lb66NU/eUL0VVgQvPJ6kXg MU+PsUwfhV0yzIluBGxGUiieqhBorAXaog+7QSUADCXjvnbHoWadmpulAfm9bC/LddG5 zqA8w56hAOngC4QOXHy/w6D7HmCjaXXx6fXVadQ5u9qOc3mlc6ezvXQImEu4ooY1Yx/Q sc8thuBP00d08Ct7vcnTmzyMn4fKxi6tLAKYk6SQdWralKhpJrLheXAUkci0aeTXusWq rvFw== X-Gm-Message-State: AO0yUKXH5FQ2OOPeSpTgEBamYiS+iIhfI8RlXGJz7qkXYIuRvAaJv2NS Zj1oL7JhNKhuNVHf6Ji00xIOPUD2x4ORcKmQqGWz6w== X-Google-Smtp-Source: AK7set8Q/ML7FJWquz6rdA8/0zq+ibw2pjtN5ZL0/QIoHuOAFcnJNcM/tya+FKCufMOb71pOTFpIBgNnjAROFWgeOO8= X-Received: by 2002:a5b:c3:0:b0:83a:dd71:5b70 with SMTP id d3-20020a5b00c3000000b0083add715b70mr242086ybp.35.1676456298013; Wed, 15 Feb 2023 02:18:18 -0800 (PST) MIME-Version: 1.0 References: <20230214073638.571417-1-alexander.stein@ew.tq-group.com> In-Reply-To: From: Linus Walleij Date: Wed, 15 Feb 2023 11:18:06 +0100 Message-ID: Subject: Re: [PATCH 1/1] gpio: vf610: make irq_chip immutable To: andy.shevchenko@gmail.com Cc: Alexander Stein , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 14, 2023 at 11:52 AM wrote: > Tue, Feb 14, 2023 at 08:36:38AM +0100, Alexander Stein kirjoitti: > > Since recently, the kernel is nagging about mutable irq_chips: > > > > "not an immutable chip, please consider fixing it!" > > > > Drop the unneeded copy, flag it as IRQCHIP_IMMUTABLE, add the new > > helper functions and call the appropriate gpiolib functions. > > ... > > > The overall changes are based on commit f1138dacb7ff > > ("gpio: sch: make irq_chip immutable") > > Nice, but you forgot one crucial detail. You need to mark GPIO resuested > whenever it's locked as IRQ and otherwise when unlocked. +static const struct irq_chip vf610_irqchip = { (...) + GPIOCHIP_IRQ_RESOURCE_HELPERS, That's what this macro does ;) Yours, Linus Walleij