Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4111892rwj; Tue, 20 Dec 2022 06:17:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf7R55hIR7JEyWSBF8eA9D3C7X/FHu2u4PTOF43XWr6qZPZvBo8JvY6+SuNBxNpQpdqgFLhE X-Received: by 2002:a05:6a00:acd:b0:566:900d:51f2 with SMTP id c13-20020a056a000acd00b00566900d51f2mr60031446pfl.33.1671545844817; Tue, 20 Dec 2022 06:17:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671545844; cv=none; d=google.com; s=arc-20160816; b=n+YRdpp/lyFHXkNGinWObuCUMitJHpLqcVfFwpJcuss4FpXPiJNXRh5/hj4SRzdZbP fQqTrQQOmuBJJJvJtDWa9OcVrnWzcXqSHrCetaz5MnWNk+wSh30RFoYmtmv99vzzD+T4 NYSIVx7fpx4MeG429jzm6O1Hvc1bsAhT9sC8YPe6VNXig0/5+qbwmO3mw6TzShvlz5dq ibvv1GQ6nQzc7q+Oh81rpwAue/SNaWIagOb8iCmvfOPmR1g3JQO65X6tGgRu+mSjAYs6 wjUUygyU8LkwV3SqpujMGGAAAjHdKSb6e/6cedtqQqc5xYdXclZtyiLf7K5x5PS6SARv F0Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HluKQUyPDQmXT/c/JMdh4fY6uEULKKHgrMdg1mDDNN8=; b=rQoBACvNUV3Kgo+FHtNAWjhVS/nFOOqbXms1wBe5ZreveNhyGASd7KnUsmhDL8ZVFd vCbtMGcCm9/t4qUkQp8FNiXYENxuYXMm6kOiKkVG7HE6hC6gFINa4i/0q6QhEUqzI0ZQ fAnHZXNEFjhydk+pwQNNE+6A05JhuqJhERX7t9wz0hWLn1NpfX9QAOzsLiaWvkptam6Y yVbQC9Ag1KelPN/msGrvf1EAFboK8n2F0pwNqfuK1pAtRv+46Wh3/E6csnPTuqSlCOcf i4x5JGrL96EbaMjoC8aqYlEIuPQzHb1ITripjSFuO3dPzQMM9YjmDjD8deeVEcu1D2Ex P4fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wwpRQfUJ; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o190-20020a62cdc7000000b005766cd2128dsi12771101pfg.269.2022.12.20.06.17.14; Tue, 20 Dec 2022 06:17:24 -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=@linux.dev header.s=key1 header.b=wwpRQfUJ; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233349AbiLTNYb (ORCPT + 70 others); Tue, 20 Dec 2022 08:24:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233256AbiLTNYZ (ORCPT ); Tue, 20 Dec 2022 08:24:25 -0500 Received: from out-88.mta0.migadu.com (out-88.mta0.migadu.com [91.218.175.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B295E19C20 for ; Tue, 20 Dec 2022 05:24:24 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1671542662; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=HluKQUyPDQmXT/c/JMdh4fY6uEULKKHgrMdg1mDDNN8=; b=wwpRQfUJVLAa2Q83vUc948GMv3Hmg/3B24wqogC84x1LDd5ZL/Pex3sYzKk3Eex1D9FCDi GEchnbk1kHfF318gztbe9cu2ItLwHBzyLfS6H1YtyEdIL8/cFSoG6wIv5taBdewXXzIfbz A72Miv5rpmK9c7Q7S4wQT2ULdPVMSnc= From: Cixi Geng To: linus.walleij@linaro.org, brgl@bgdev.pl, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 0/3] Make the irqchip immutable Date: Tue, 20 Dec 2022 21:23:38 +0800 Message-Id: <20221220132341.19383-1-cixi.geng@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 From: Cixi Geng Kernel warns about mutable irq_chips: "not an immutable chip, please consider fixing!" Make the struct irq_chip const, flag it as IRQCHIP_IMMUTABLE, add the new helper functions, and call the appropriate gpiolib functions. changes: split the patch by each driver. and other comment by baolin in[1] Cixi Geng (3): gpio: eic-sprd: Make the irqchip immutable gpio: gpio-pmic-eic-sprd: Make the irqchip immutable gpio: gpio-sprd: Make the irqchip immutable drivers/gpio/gpio-eic-sprd.c | 23 ++++++++++++++--------- drivers/gpio/gpio-pmic-eic-sprd.c | 29 ++++++++++++++++++----------- drivers/gpio/gpio-sprd.c | 8 ++++++-- 3 files changed, 38 insertions(+), 22 deletions(-) -- 2.34.1