From patchwork Wed Jul 20 21:30:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 12924528 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 83D98C433EF for ; Wed, 20 Jul 2022 21:32:26 +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=sbwAwXtmEXyOwK Qzewxnah14vKLf377nAfXJtpaJUKCjeX1SdIxW1iNppaV+vUyJE2p5RLEQ8z6yhUrL6OVpwDYzTfF +I4lDAf2w3739L9whIOCGAZOGOl+objZC6MqpbLIF+Q2w8vqE+r1nIgH+ZYWmE6oioLu/ozuw6Je2 5/+xhelV0RxnsSbYlVKbyTOfFFsUS9d/LHd8s6y6zSQxKFVoHwIhwm6pC5AK4/zX+3YIeMPqd/0BH XGYQOcu7XMBTTumw+cog1LYDHRzLj0qVGGkLutLRgLLGNl5ZcYbtOa3TOWQvbx6ToSPyxeRfjzycw TkOaqSff4C5PQUkKaxmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEHHq-00BUQX-Tf; Wed, 20 Jul 2022 21:31:19 +0000 Received: from mail-db8eur05on2044.outbound.protection.outlook.com ([40.107.20.44] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEHHe-00BU9z-Q6 for linux-arm-kernel@lists.infradead.org; Wed, 20 Jul 2022 21:31:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ALFNS4jjIJObqTOJr1FAlo1yOXDsUQWDhxjZWs7djfQXasvIlOW5rne/Mhfvjn1nyF015+3ZdjM5XgEfDNx6+ZQgAK18MpgLur958v4C+zAOyhEIzAtxn3T8fGMEW99qigJAs00mdm8fpk88z2RxEwmN1AsCTCjcW2pOc4UgIpRCs9jjbaXaq6xeOC6B6h/GBqNxpmIfZpJlBSbm83078NvF82Udbbc07G9ReMcNQD01fl5f0miRZ+whe7nf+h7E0x/DQGiuf7/58djcfjQGwb1dApuXXOR9c8rENHBI8ymL/bs48FF+WRp3TWjndt/heIgTosb1BgIAnXFnIMt+zA== 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=F1jUSeSPwq+4cboTF/Ls2z6q4kNerFSKLs9XWIJM0lvRdESz4io2zVDT124pLjujSdyBBgsjK5z+S4VegedSE2CpoK3sKAG/Rji/A9C2iY3VEKujauRhsOJiEKLCu/ZGRsV8uI8U31Kzt36gIsJiTn0k4g7apL9TAcJ52s28rE0XJsnMc14DnEocaGEi6tEWHaWDvSv6OnchLAH3PoGnzgPn0oNFSES9tRXbY01CA0JdrsaEmclgiGF789UYfA4JI2vUW5u7Hbf6HI2gYsrrM6BwDfhkXrGMg2EGmiCGN5iQIEPebW6X+WWJhANfmdSri3Ve1H56I0YNMjResAlFfA== 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=F/DhJU49uXAWsT1UUmFg2jMphUVGP9LyMYPh0uf7Gbmnpq3JSl3om39cxhwLWYJDmeBR8v6j8c2Qm3cYBCIXBdiJJ/fTM6Fz507NUZlfpFFjwB0RgAhWYQm3bFRLCBLOJq/hlLrObETjXbfpjSiY1p4ZxRV/E6TarjRVdcZthGo= 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 AM0PR04MB5409.eurprd04.prod.outlook.com (2603:10a6:208:120::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.23; Wed, 20 Jul 2022 21:31:03 +0000 Received: from PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::54aa:b7cb:a13c:66ab]) by PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::54aa:b7cb:a13c:66ab%9]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 21:31:03 +0000 From: Frank Li To: jdmason@kudzu.us, 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, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, ntb@lists.linux.dev Subject: [PATCH v3 1/4] irqchip: allow pass down .pm field at IRQCHIP_PLATFORM_DRIVER_END Date: Wed, 20 Jul 2022 16:30:33 -0500 Message-Id: <20220720213036.1738628-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220720213036.1738628-1-Frank.Li@nxp.com> References: <20220720213036.1738628-1-Frank.Li@nxp.com> X-ClientProxiedBy: BY3PR10CA0005.namprd10.prod.outlook.com (2603:10b6:a03:255::10) 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: e42d61b1-aa3a-454a-b8a6-08da6a97259b X-MS-TrafficTypeDiagnostic: AM0PR04MB5409:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KmH/rzUDrxtGGplsV3bVLlhBSGCJ2GzivaguZNNkgzoxqdPmvKxjZpP8QfLRMcT+qYd7qr3FziDybCLSpvmKONj0pCaM/ZsRthFxbhvdBgBwLqRYKm3iB39Q5S+i9zz0rowWchH9/UQ3+r0ds1a3qgmNzYj2NudaS9sUotSA/hm9sZlFd5U/CWwRjVQjB6Rqfyfztzb5KwFQIZPkqwh8/wnmHMemWDclHUZpl5RHJ3aBfFQKO7xbv1CFUb4+jaA3VDxCHMZgjYJp5476epHC56YRmK+mTtkRAvAM/OB8oxmd+/4AYeXc4NGvw6HEgm3TWyduh/6/soAU8YjWDP7xe2bSCdw5ojxZ2F5Kml4QhTj0jcQ6ZGLoNd7R58Wb9YyFjWctLKQNDcPtDWENINRkJ8Mue1yFF5F/l6WESYQC4/2JS8G5Jlvlk+ALZdTv2FjlZnL6KO71Ty8zBeZDUACIA8N0ga1ovJkVQVWp437vQbzMwOlP4lcXrATsL2G2hW4vwR8uMwqTZgwlMWlIToym8hNli/fOY8eG6Rjrytn+5IKEz/enaf/J/M9B1lOXM7FKNoevxTYpyxoSQmPNpth4ATWC1IpNfcaSRBedB1EFv/p0Fx9dcsv1ql34B8dQgX423IJNbA4uNJFjHWiLk3rZVawUaUu5CXmK7pm82VbPKh2llqBchlBQi6aar78o9h+Q54iEn9sP/zcaYKNqoRcsLX57WEyy1GxuF0iXBsatzjPPG0ULHxlcvmUcW6J5UK+WFx4o48ymEr+AmNN2MXbqTUerrmzykqBXVulecgv1bo6c5JrknJUzHxR5+1+1EFFQ 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)(376002)(366004)(136003)(346002)(39860400002)(396003)(316002)(38350700002)(6486002)(83380400001)(6666004)(52116002)(478600001)(41300700001)(2616005)(36756003)(6512007)(186003)(1076003)(8676002)(7416002)(66476007)(6506007)(66556008)(5660300002)(2906002)(4326008)(8936002)(66946007)(26005)(86362001)(38100700002)(142923001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SRs6it8tqBAMCIIBcUuz8RJbrdst9NyM0JAuXcSOcRrfEY0rukeVOUvW0VIJsDn3aGPetEdQM8+cP1CSRU64QFgayrE2JK5q1iKM8aK4YaI21Rx4xUvKHMsoxUqvAPQpuc6OMwxy1fOcOXEh2MEBZ4FCSEpbtNM30D3GzTBcfPldSVgmEMrKxspdGjlUFAZX83gEzirZjwPeAxbpgWyROKeF87FQjg/h9Q3JghCy4u9/SPWvevLbBYC+Le3JXO8GtICs4oGdhX7grukKTtPdNKBryuQGOOcoM8ucVC/vxGID3snegU7dUMmmyQoiyMCc0diBSP6Vzq5tMl3ZezNGyGvf1IORmPAP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Sss5bwcyt0rjU50nUgnxDdS9B5bJsTBjrGsDQCnY+B+r82isLs+83nh/wl64nZFSnuQZIDVOuvhPDovT4F9wL6syddhrvMOUIHqsWVySrNaF20A0DcbPtusQA3kDxpvmWC/J4XCVgiUCTLZ9mCV51i3feDM= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e42d61b1-aa3a-454a-b8a6-08da6a97259b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2022 21:31:03.3039 (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: DyOUMYaEDyWDztITxVO57XQA25ALnWNFW0Vp2/Tl3y6vp0iWuQ98Z4Y4GzO7zAbkk2gpf8aJhVxIx5VL2YIw0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5409 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220720_143106_872985_9C1CEDF2 X-CRM114-Status: GOOD ( 10.99 ) 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)