Message ID | 20220812215242.2255824-2-Frank.Li@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D8C7C00140 for <linux-arm-kernel@archiver.kernel.org>; Fri, 12 Aug 2022 21:54:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YBOfdq82Qq4mS1G3VKoPNjXA+lpyFDtGYW3MX358oME=; b=WotD02QmfWAONz TsAglh58QDt/FyM69ecik39LZT5EpP0LH5RW30mhHN5i9gtEwdbxeM+qqYRPOwc2CToKwazo1e63K I2T806DeOSmemibb5dHaDR7izRvKNT/EuviuT1pfqP6KOF4GMDqFOFbjWSBD+il67Px59KL9smuee v7rOD5k3wL+F/kOKwv17drkHXE5b+P8aniaHHi7Etoyu4cG/qObKkTN+BU+vhuuEWcS5ylREYDX/R b5qUScQjr4q4dMwlFzj4/NLD6+dHF7C3WDQSopc/mZoK+YD09w/OkoueMxhGAnRaKPG6y2cBNyQxa JTNAbTeyn5gQ1fI1Tp0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oMcap-00DvKb-07; Fri, 12 Aug 2022 21:53:23 +0000 Received: from mail-am6eur05on2061.outbound.protection.outlook.com ([40.107.22.61] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oMcad-00Dv9e-D0 for linux-arm-kernel@lists.infradead.org; Fri, 12 Aug 2022 21:53:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R/KBYf1B787dQ5XlppGZDrG7pXcKi9MGwEubbrT2WDHws6H1cmfMdzaAppbbqaIWzIG65gYA1xXlLWnLRilzd79wdsYCrNN0GaHIrBrvDFHi4zMLUAcDCoZRGb+AStH9Rv+zVXXS7m+kKH9EPUNEuWep0NX/nzzxIR0ChuxprdgX1ZRiUg5NQ+/Ql28pxTjQUt6pU6eJddSeHyaSnbBBqEvwZGGD0KoXbyRtWjv5Vbergeo0ODzYMAw5P8IO2sB5GmxNnVt7BO7YNj7foEa2HYSj8iZK10OQNcNzQmPeu7PAnFnmMYZCnCU2amATqXNMIMlwsnZeObl41ddUu/pjVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PxyZmoQ4HPxt9JAZN3QVzBllZWpIazPpqniEWrzTllw=; b=FoAanTK8OM6a5Wq28b1tHvUMRb3gYaeTFSpC2sLAxpi51tIxxcoUnl8xJQs22FuS1BMCFilLgfj8586nnKNvvQpgMbcpswiev+/HALZbiZpwGpy/bQ5PJlIhwN4XHSnCo0GjNtnqVEMEyd5I27lUThbHvemieI68iRMuvqG6gKxqRSC9nlr07q//F+5RbefJJlmfNBlHOjObSTSKpe+FgPSenqXfgdDtjHYOzy0fy/FpS5whH5tv9DduYXxbuAATomeTw+uMy/Rp+KRSDnnsH+s/h/wHN/icn6U0Xk4bSiTRgE0yUAoMTdWvZpJptKtkmgJpUVDFZkguFY7JY5PgqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PxyZmoQ4HPxt9JAZN3QVzBllZWpIazPpqniEWrzTllw=; b=MyIEQKoRQTmxCVleJ0vDTiIJCpCFG99w8WDJtp3+/vabNAfmOeUWd46bZ4VU2mqN/OmPLyRXsATqMJ92iB+NGMZS/NN38DvBElVFiOTxLil4N3xUL2tewC4GPHQXFcRMxZ8cxyWfwG1R39CKT2O1IsoXHQ7xMQR9urk79oum2W0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9186.eurprd04.prod.outlook.com (2603:10a6:102:232::18) by GV1PR04MB9087.eurprd04.prod.outlook.com (2603:10a6:150:22::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Fri, 12 Aug 2022 21:53:07 +0000 Received: from PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::c5f1:b708:61db:a004]) by PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::c5f1:b708:61db:a004%6]) with mapi id 15.20.5504.023; Fri, 12 Aug 2022 21:53:07 +0000 From: Frank Li <Frank.Li@nxp.com> To: maz@kernel.org, tglx@linutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kw@linux.com, bhelgaas@google.com Cc: kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, peng.fan@nxp.com, aisheng.dong@nxp.com, jdmason@kudzu.us, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, ntb@lists.linux.dev, lznuaa@gmail.com Subject: [PATCH v4 1/4] irqchip: allow pass down .pm field at IRQCHIP_PLATFORM_DRIVER_END Date: Fri, 12 Aug 2022 16:52:39 -0500 Message-Id: <20220812215242.2255824-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220812215242.2255824-1-Frank.Li@nxp.com> References: <20220812215242.2255824-1-Frank.Li@nxp.com> X-ClientProxiedBy: BYAPR06CA0064.namprd06.prod.outlook.com (2603:10b6:a03:14b::41) To PAXPR04MB9186.eurprd04.prod.outlook.com (2603:10a6:102:232::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b5ed49ab-af50-45bb-b2db-08da7cad0a09 X-MS-TrafficTypeDiagnostic: GV1PR04MB9087:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xkptXFRglIjPeyeH9S/2WOemrb2wM9espkgrM20/KgIpc2AaM3e5MOpk0ehhUhE18/bWaFnesXGEJ3EwLTCbW20mk02ZMpeTKjw8geStfwJWK6gIkm46POx28BakO1qK9refHSH0qTuz3QQ6DmBSQipwXhjC596o5h5kPkkAa5tYWfpFTQgzyC2HlqBrB0XnC9ZXCzmJIw3tMdG8NXalZ1WSa8bN8MsM+Yxgj3VBlo6xv3c1KYZ61ZtI2A4z1zfVvcFje9X/Zb31n+N/aLmF17oZonDHCIiObQbTK17hS/LrshMrZHXXTcqdinTHwCx+/v9KhAbdxONl89kI6un4s4xtuxI/HVcagcEgYA1EblvIouhsgOEtzRMST3fObvrlhzfebfrwWAqSBhi30eb5iKykOPQ7bgwnQ2WUXQoQhUZmUTQd5WQ95zqLfxRSUvVKdNq9MybTmHLJCLAPLFB+JAJUNZWnfaNk0NO4JNxBB5vczQ+7BvP4UhOBpK9JFPF2x9/ASzNeYBdPBf+OfHeDm489IDvGgqnM+24CW3PdShMPmHPisu78EewqczGHm4Jxidfqi4/RzW9iOtGYYsiPjTSDkCZbajFSlDn92rUeG2hnZwZM3pPjquYYxQSpGrn9z7etot3QMNwZlF2p+ZMehH0rIGZIpdumCgOtst3iiHzWGL7chHJKQcRtBP3J9vYu8//xN+MnEpg9ZnEFShhfH7h5yxUYeqT96kpe5Hd7a+FHViYUdTRWZ9vUG158k0GAq9LnHfHZGuL2A6M7IEWS+hwYrHYLaAXM6aFFKP2s8im/lsTCaGsW5InCmjCE24UE X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9186.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(366004)(396003)(346002)(136003)(39860400002)(376002)(1076003)(2616005)(186003)(83380400001)(38100700002)(6486002)(478600001)(38350700002)(316002)(66556008)(41300700001)(6666004)(7416002)(5660300002)(52116002)(2906002)(8936002)(26005)(6512007)(66946007)(8676002)(6506007)(4326008)(66476007)(86362001)(36756003)(142923001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ma5q1ICscRcHXm+xCi/g64UnBVutt2+cQLPtAM4Z2EKULXbvCnp15LkDC9TMch9HsKZ0DpTYX2Q+T6vH7YBTYl3dzDGs8zP0/soRK03yCEvbLPsveSgRBo6dJCYzKk5D3Yt3MfmFg9SFAoHKerGuLCTSbdolhPjlrLd4IBCmvQgxOOPd2fYG35BV9Pi1yk1sGTSMzSoSFzf+3X7UYHd7QC054K+0xrWrXI+/BH4OGLw2hFI9lHpcDG2nqdQYhH1hksomjV6zPZfzuftFWAas5Wh85loC44vIYOnhp82LGJ9rD0ONZv+GZQHlZtX+JvaSKKlTz+WAdyM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9QMir5Oiipn5ZSxyDHOVYmL9oBYxK8WbSD8v2zRoSPPxoULCj7MJaO57WYgV+8ih/G7/W0g+EdZl4pXjAywA+r2Eoy+yNBd4n5XP4v7hul29Ho2FYclzJDIK4CHSPuiurSV2IKxvaOl+1tTA1JuK6VXOln21LVDjUYseiX65XnccAc= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5ed49ab-af50-45bb-b2db-08da7cad0a09 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2022 21:53:06.8926 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: arj9Lk9RFI6KgMn0LJY+WYOuiJQsVOHWx/IAzZorl9OmyqXCi9DaPxZq/rYmjcG5Q+FWbulgo3RjyyPb3ieFtw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9087 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220812_145311_461078_9CA1A04E X-CRM114-Status: GOOD ( 11.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[v4,1/4] irqchip: allow pass down .pm field at IRQCHIP_PLATFORM_DRIVER_END
|
expand
|
diff --git a/include/linux/irqchip.h b/include/linux/irqchip.h index 3a091d0710ae1..d5e6024cb2a8c 100644 --- a/include/linux/irqchip.h +++ b/include/linux/irqchip.h @@ -44,7 +44,8 @@ static const struct of_device_id drv_name##_irqchip_match_table[] = { #define IRQCHIP_MATCH(compat, fn) { .compatible = compat, \ .data = typecheck_irq_init_cb(fn), }, -#define IRQCHIP_PLATFORM_DRIVER_END(drv_name) \ + +#define IRQCHIP_PLATFORM_DRIVER_END(drv_name, ...) \ {}, \ }; \ MODULE_DEVICE_TABLE(of, drv_name##_irqchip_match_table); \ @@ -56,6 +57,7 @@ static struct platform_driver drv_name##_driver = { \ .owner = THIS_MODULE, \ .of_match_table = drv_name##_irqchip_match_table, \ .suppress_bind_attrs = true, \ + __VA_ARGS__ \ }, \ }; \ builtin_platform_driver(drv_name##_driver)
IRQCHIP_PLATFORM_DRIVER_* compilation define platform_driver for irqchip. But can't set .pm field of platform_driver. Added variadic macros to set .pm field or other field if need. Signed-off-by: Frank Li <Frank.Li@nxp.com> --- include/linux/irqchip.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)