Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4463624rwl; Wed, 28 Dec 2022 04:38:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXvNcsVOpQvRxu3g2ueVhawbGjKm8fwabWSjrdmiiA7TBWhEoGrZDWJHXlaqbvatjwkhrjcL X-Received: by 2002:a05:6a20:94ca:b0:b2:2719:8f11 with SMTP id ht10-20020a056a2094ca00b000b227198f11mr31421061pzb.55.1672231104823; Wed, 28 Dec 2022 04:38:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672231104; cv=none; d=google.com; s=arc-20160816; b=lNh4JYu+HeWgcJHjYE98rijqxgNgmHL1RKelrFuKO/A7i/WXAXLfO01n4/a8XVR3Uu MaGY24zekqCeCMg/fCzs9Lk2wOESHSkzvBlJ64dzmLpRS1rJ1U9DO0N2ShYjqHTgct3T mdOJ0o5/C60uCN/YOofDAuqMomDyKejFnJDze9TmMjB9aVmIL1S/WDzqnice5YH6pSdN QlqaH5kV1xXGns+Zb9ZSMlgGLvemiFlzMDrrEA1LAO+MDXkSOmfFD1DL72uU4X/an+0u 64aZ/FxksCJzQKrKQaMfpcoER6pEvQIWlTprEnXTc0h7q5AIfxQXqE5DsHFX0ZdfRPdV L7ZQ== 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=TMV4Qv2vawvIPldNlgCxLwC6ooI0ZTG3WDHvdQQQ+So=; b=QS/Ls+2KQtCBhzXYfPEIv5S9y2zHyDStVhATTN6IKrUkwpPEknSUqwxxbUwtUGoc4E YIlzgJeVSagkg8blqXMLDJITGw0BNwngA9LY4gjufyKNCujQdk7ef3hRy4hEGRQZ+uxP EViOrP5h+jeJeKRNOydgEzhL6J/bc3NfnWKZqFL1fmr2RlFEg7dhFVIYWKeABsIMmfkk Uh892tO/lOD9+quvMKF2OvaaqX3uBf83N7DG9Eji0bAp5UDtOqMkLdT8d051CjHZJxIs qY2SDLqjHUDvOlnOwRUIKvjI1xLDC7oPksmMggwAS33j6TwkNFxlkbLq6Y0GKWlfRZjq zzoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=eWtODONX; 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 e26-20020a63745a000000b00476e3bafe6dsi16949091pgn.481.2022.12.28.04.38.16; Wed, 28 Dec 2022 04:38: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=eWtODONX; 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 S230464AbiL1Mcu (ORCPT + 65 others); Wed, 28 Dec 2022 07:32:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232542AbiL1MZC (ORCPT ); Wed, 28 Dec 2022 07:25:02 -0500 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3BB42BA; Wed, 28 Dec 2022 04:25:00 -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=1672230298; 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=TMV4Qv2vawvIPldNlgCxLwC6ooI0ZTG3WDHvdQQQ+So=; b=eWtODONXkCdzYOiH9EFWtX5QkId0udUHns9htOGytFKvpZjydl+FDR/QIr+WRKwGZqx1lt eFTU6cYt72pKUGbu/xwNraGUsP1ZjhZRe7TATXNu+bTQTMujzrL5MYrMBWzlNhbctAhvum wUFotRJlONem/dDVjh95TYV0XiIIOis= 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, cixi.geng1@unisoc.com Subject: [PATCH V3 0/3] Make the irqchip immutable Date: Wed, 28 Dec 2022 20:24:39 +0800 Message-Id: <20221228122442.392504-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_PASS,SPF_PASS 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 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. v2 changes: split the patch by each driver. and other comment by baolin in[1] v3 changes: fix cocci warnings test by lkp[2]. [1]:https://lore.kernel.org/all/97e244d4-6b5c-31c9-7329-b8deef615645@linux.alibaba.com/ [2]:https://lore.kernel.org/all/202212240406.9Nm190P8-lkp@intel.com/ 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 | 9 ++++++--- 3 files changed, 38 insertions(+), 23 deletions(-) base-commit: 1b929c02afd37871d5afb9d498426f83432e71c2 -- 2.34.1