From patchwork Mon Sep 19 15:40:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 12980670 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 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 93531C54EE9 for ; Mon, 19 Sep 2022 15:52:19 +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=R4zKn6O5s2h/tl uzYb4X85UXWo4CW4LJzNcK1LXCN+3fYKna7q5Ld6j/G8jIc96oo1PFIVktlVZTGRc5lKojI2PAxTx sFsnjNjEVPTKtsSfIvC9y5v9WNhJs42rYj4i2vW+dSosHHaon/bh7wRlyDHLcRr5dQCSrkQdmM79Z IDqIrV2Cl3f5p+YbcYlcekQYuH08/aSAqpFFhISXDdkkuCx0HM0LIgnfkZVkaJGH+DB6AuUds588N F63pIYSHTWiF47f6ErqjJDJiW7B2UJnFZoP04O9+bkxpzHcAK0ro0Xei20CefVbB7TjljXrnWYtDl cFD6tzfA1jAxL7abD9xg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaJ2Y-00CeWy-B9; Mon, 19 Sep 2022 15:50:35 +0000 Received: from mail-eopbgr60053.outbound.protection.outlook.com ([40.107.6.53] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaItW-00CZv2-F7 for linux-arm-kernel@lists.infradead.org; Mon, 19 Sep 2022 15:41:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HRk3boPjjxuMD6NigIm/BvuFA4JDwZ8elEawe+esYrYgp4gsp04wk6rTPEBj32hLzQdzhqbKRTtvw7k39m1x4N5nOcPjhsfIE2K1O9XcCjapJSWEZyRoVR2CnfvYTC07eb8nZ3TbakG/yDZRLICTvwXEAreX+vAftWaohsCSiRwTwRAAdUCacyU8+bZvh2CIRz9ZOeufHGorYJA1kO1IFSAJ7ZbHhIOlVt8FJpPobADYCd0iMV9Q9M/Xi5c+StZIhBONbZCKd1YvGSL7ZEKDUAen4iqpAjV5amEZGCIVmHriIKmCkUBXZpxEp5aoX1K1bI8q8jwIaqdxHio/J3YCgg== 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=Z2PET0njyMxgg/T1tXJ6TEXyESPyYzWcunUd0NYbsLprGcASOfP0W3aQp5bj+Km0x7ztwNEyR5Vo8oF5Nj0ZdXMJp2TelZyCp/NEnW8cFrvB87M5z0sgY//PG4U0xkDaenCeC4NWZpKMvXxlUlmWHGOg2znTAy4Mgg68GZ1x5kas6jDv81UTan2Tl+KhElBYxMh0yVwbnyG+0nZXhWp08QPuNn03DP/nLekVxKzise8Hd+4NheCUfIMgBj9mf1OuF1DTF58TELKJTIDbM2m+/CNTGPotqlhZddV9yHxV0FpQm95V6RdY43FrxUTdOCHwYs0EDq3rRExLYs3EXrZ16Q== 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=o4FtEvCaK2wWAy7LRS+8K8nNGjt+IKE5/TvjBMEEBgH81QMt7/MB1GTeXQ1oaHrFKS4pNeUx7V77VWnOaMSDujs0kdFWWo0tlpa07aC2+wcy6kNNi9ZgHLVfs8StSfM/DxH1AzfZvPXJW97M0e1P5qkVWfJfBY15t/IdGzeKSA0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM9PR04MB8793.eurprd04.prod.outlook.com (2603:10a6:20b:408::22) by AM0PR04MB6945.eurprd04.prod.outlook.com (2603:10a6:208:17f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.21; Mon, 19 Sep 2022 15:41:11 +0000 Received: from AM9PR04MB8793.eurprd04.prod.outlook.com ([fe80::5a3:ff70:317d:a99e]) by AM9PR04MB8793.eurprd04.prod.outlook.com ([fe80::5a3:ff70:317d:a99e%7]) with mapi id 15.20.5632.021; Mon, 19 Sep 2022 15:41:11 +0000 From: Frank Li 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: linux-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, imx@lists.linux.dev, manivannan.sadhasivam@linaro.org Subject: [PATCH v11 2/6] irqchip: allow pass down .pm field at IRQCHIP_PLATFORM_DRIVER_END Date: Mon, 19 Sep 2022 10:40:34 -0500 Message-Id: <20220919154038.187168-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220919154038.187168-1-Frank.Li@nxp.com> References: <20220919154038.187168-1-Frank.Li@nxp.com> X-ClientProxiedBy: BY3PR05CA0059.namprd05.prod.outlook.com (2603:10b6:a03:39b::34) To AM9PR04MB8793.eurprd04.prod.outlook.com (2603:10a6:20b:408::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8793:EE_|AM0PR04MB6945:EE_ X-MS-Office365-Filtering-Correlation-Id: b8555b49-e1c4-4d66-36bb-08da9a5560e2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o7qW4IUI8z7Ei3qL37BOMKsA996WvhgNyWKNR15nRqcBlH169jvZkZb0nTkrKhTdu1YfkJCDBOgXuPqEvb1Fg47MKtTCaqFpzg+pOZS7+cw8z37lww6evxvmId4xwfGZIYvxiHkuMdmqEjQh6kaMchUS6qcnkqvPgG+HYih/Gil3NhbjWvhkNZp8E1jb7rc1c4SstkDgJHDgb8RN/fZGMagBECwaI8kZrm19MnNi9gkPeMeFdsjqq1Q2FkI2H8W9LIHz5usQVnEHtwM5WVQZlVIcR63Oxkc+hI7qXwl8a5iMuh5dvBHoOasKZEUHiE3e3Ar8bftpIMqqi9jJc6dnqa9AsUsjHHVXD5NGp3Ntg4b+YYcXbpe1a8ZL+MKmsADupJnMeURS+tTfVR9gYarEPuAK25pKfiFxx/egfeO4d88Bv/zSn5076/C7vSgga2Y3RAsedXdTEIv+gdyISPkvgktAqoUWsXpMGSWSkBHKx+qDZfUHkNLFqGGcJlhic8dOMfEGWtEbGEXuKo0/JXi55YmFoTRIT1F19C0n0uaysGcG3E3pVYdlnolOp7vOvRvLIdZ+stvujmicCe4hDq1lgQbNei00PyIROzxSH/iIuanE8DXO/ZQvrCXcMFuV8MjMwqXigk3r+voJ8Ym2FbUvOeyD2IUAjlxoA/nmp4ygmtxGEH8ZHacjj30ag9x2gBd26gikDl36vcMjKUgWNNXDEt9hAP2PR2Bl6oJkbPWqMDLpJYKe8VHxrqgj+Sa8/LYUpk5HGx04O6olZq8YgENlFQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8793.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(396003)(346002)(376002)(136003)(39860400002)(451199015)(66476007)(36756003)(66556008)(1076003)(2616005)(2906002)(66946007)(38350700002)(38100700002)(4326008)(83380400001)(8936002)(186003)(41300700001)(6666004)(478600001)(8676002)(6512007)(86362001)(26005)(316002)(6506007)(52116002)(5660300002)(6486002)(7416002)(142923001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +gAOAl43DJyWX/fzKU6PouZWUIGmrdGDppPEMRo+W3lZ/Qn5eqC6obFM9DflrcIwJKh7yhN2J+NJqHKoWUHImN8CQeNGI0X83gh03Oz5+8Kp7ujinkD470IKzAIw8MTnplMWXbYiKgkeLY1g/dhMhJdQuNVhsClPIUJyzIuv/GwJSxoLCdRjqEhiJFGyftdswebc+f6NE+djf2P6cJRyAs8/xjT9qSOGfsITq4/LwkMosxAcPBzzkX5QfhgHPtJZ8LMqhbjNlLyI3Q6oUqgaRqlTeepdqT8Eg3nR1gKTPBQRWETKbCsc1KrlcFTcd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liu6FUeaTvAiHd+s5wDx3DLk3j9So8XzRW3uDFfWEvonsu91fTzCoBfH0NEzYWX99yhrGz6rD7vUW2ZyExM0uCBPJPi7yKkyM0UwTERn+LoxJkijZ64AnDu3Ojmk3T4H4CPlTTChuCGLTDGFZVJ5zkp3gJQ9QeVX79wkcZf0zCYj+lJk62eIecP+oCQrwbUGOKPGopyzpcS+F03+908 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8555b49-e1c4-4d66-36bb-08da9a5560e2 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8793.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2022 15:41:11.7337 (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: 6FLCkfH4BkNat93CeG655T+3lC1vwBiq92NTJkAXwTttDM91UobSG2HVc5K+uKu8++WAdfKufQRAMfmaE5A6rg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6945 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220919_084114_605504_C74F77AD X-CRM114-Status: GOOD ( 12.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- include/linux/irqchip.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)