From patchwork Mon Aug 15 21:39: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: 12944091 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 603FFC00140 for ; Mon, 15 Aug 2022 21:41:54 +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=25VxKNS40Lyk8S eYCN1+dfuUBVtnpK5PgJmOLqu1ft6LaYdjEnTymIlTEAxZvt2+YBn28kpjAiNt+UqP41tzCNGDKlB +kfR9aLwfDi1SG3f1AT87hXFaNcHCRzVpnuF5Go8JvL3vedRGIwX701M977tyA6mbGNo7gHUANwBX RntKbEDe4kZJugYknqzeXcUxQyubgHDJ3Kp7h5LiXS27V3RMTMWmzYUN8tcTffjiuNfQ4oZeDWxcb s8geuea1p1ewty1q2mEFwIzMXQLuwYTL11UANKSdT1EEVFW9SV4REVuSMfuGkxzcY97Ehz68QBMBw 8ULQ4s8MgZaN0M5LlNVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNhp5-0061NK-ON; Mon, 15 Aug 2022 21:40:36 +0000 Received: from mail-eopbgr10055.outbound.protection.outlook.com ([40.107.1.55] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNhoj-0060wM-Lg for linux-arm-kernel@lists.infradead.org; Mon, 15 Aug 2022 21:40:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mE9MZJgE7bET3oMsKj/jWnmVFaGf4oyj8HQkWrTE3fvhjRba3vwvlNjd1WZyas+CDtVvmTW6fhzwM3Ju+QaQRpj112Uui9KNph1bw3dTlmZ4tlUwZ0w6P5W6xL6/fxeDsAhl5vSiZWCuKmkpG7B86QlzSmz1Rz5mmgQ5y2IRJ9OAC8O7rJkQjHf2bZdc/J5oGZRaBO+F8i+hgrgCCH2VxM6DpHuKkHXRmkGtZJjBnahMMrZX9bX9JvUxp0M3DWIZsKc0C5HeKWCfsdmHk7BojcKdGnwYQ7zY7nDzSoBuF5G0JT6rBLtfU1yRV4SlMSNlHlGu+nx9eaAzCPD8CjnIrA== 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=lxewPW8SK910D67lWGNBEcbKhq4EvkfSnuoGwHeo5QbxNtlMeJGaeCHXUGTAR9YbRDw6u7P2T4vSU9BOWOUwXYqTGyxBkOMrPfda+f8VgcnmH+cd1yeHWUMatEcxTgacSAMbtvmQnmuHR/DKDm+KbxFvBaWhgPvYEh64DBLpbyq/HsD/mxDMhsDlEKKuvoy9RWBAGQjV7dX5LaP1P6z7tENrXbewtnDYGo9kZxGtizM1J1BRmZdRPzVL8buC2xjmMT93tetj+5Hvem6xTgYLjZE3gr01KmYIZMUo6W48seftJpqoOSzIKNKwN7EEY+ygMUWr4rL7uGmwwbw5CKAdmw== 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=HOMMuUB6+q+zQQk/9c/fU70wCj6c54dhkZj0gOI24AfonDQ8llo0z7Txp79fhyn2pA3j15Xav46FBjm3ZGutQ5PrYyfrjljnkGC8g/vn+VGGkNUcf245qnKsIpdTt1Cr0P10cieyQKa2klSg2B2UxjkTS7TKLAOI009AD2111+k= 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 AM5PR0401MB2580.eurprd04.prod.outlook.com (2603:10a6:203:38::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Mon, 15 Aug 2022 21:40:04 +0000 Received: from PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::c5f1:b708:61db:a004]) by PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::c5f1:b708:61db:a004%5]) with mapi id 15.20.5504.028; Mon, 15 Aug 2022 21:40:04 +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 Subject: [PATCH v5 1/4] irqchip: allow pass down .pm field at IRQCHIP_PLATFORM_DRIVER_END Date: Mon, 15 Aug 2022 16:39:33 -0500 Message-Id: <20220815213936.2380439-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220815213936.2380439-1-Frank.Li@nxp.com> References: <20220815213936.2380439-1-Frank.Li@nxp.com> X-ClientProxiedBy: CY5PR15CA0006.namprd15.prod.outlook.com (2603:10b6:930:14::9) 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: 6b51522d-36c5-4335-c199-08da7f06b6b2 X-MS-TrafficTypeDiagnostic: AM5PR0401MB2580:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 24BcVxD3rPca4ujQiOFrqm+BC9kVnmII35aEoRLBKEZ8bTP18Vc5lzqYq+axJvz14JH2a5LrBbdnQ/4pMi7/1hxtu3/eQU7xOwaw3vUZ/cjNSTr3OFoUZxsJw/fJOer9D3P/1U/LxO881PuWRhK3cgxaMpYSRonkIeCfHJbWRNW8okaoVfaHbph+g69aYg7E1w0PlmbURbge0w3IsWNfRJoj2YiStQmS1GF9jhxuXvMW6MbUyUkCnO8FdY/JOciL7G0yNWJHlrWqzEyWGy7abrmp6l0bPw3/lZYzYkrnEXdjIGiKw2PfFSlJTGdDRUJk0EhEMQAT7WbHagP3j2EIYG2OyHryGXvwQn0cRmn3Ua1tLsQeUEl9NuyDxnZU23y/P7EL+93bxyCzckjhWhhKsCm5vW1ITgtse9/JFZCMi/9/hb1LMGz+vp0+fLujoMApioEhjT1EoU8lNqvBPOBw3S//AyWhdH+zZ9vTGfIRal2Ea4Q7AOMKi21+mquWTVUHnTf/tYew6lWrWzEP/uPLbuBRml4ud/OoQs0D9/cOhJqL+WH23tGBPYPhCaXWNlsd7uf3vkSCUIe9AgWC0cy107g6UfU7srNn7Vu06dNyJczNjTnebd34Ma2ZLjEo0uu879xH98zsu1fhDpSZ+FinqUgXAGryIjsNmdo6CW6mOI3CI8nRmfoENdzfFElPPqSznnGD6MEflSlSk2vj1sQDhzruthSYfGr8rs/b+9P7T6lsevfb0BSGbbWHwlwJC8zNm9ig/CnE3BdhEpBzo1V1sU3cTPqmyzFVZTVvrcyUNP77h/34cd+BiJWPcibWOHOj 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)(376002)(136003)(39860400002)(396003)(346002)(83380400001)(478600001)(5660300002)(1076003)(36756003)(186003)(6486002)(2616005)(38350700002)(8936002)(86362001)(41300700001)(316002)(7416002)(6666004)(4326008)(8676002)(66476007)(38100700002)(66556008)(6506007)(6512007)(52116002)(2906002)(66946007)(26005)(142923001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BjGVUjbg4q43hlsInv9oap3uRh1LN1PGvxKwZPfhjWvvV04y7+jW3/dpXS8sDtynCstZfEYl8mplyeGcTtrjD1sp5eYGme8bWmwYTbs8Ab53NVlnspfXchIya4awwPmvGwb4+clHh0yfPOsOiRbgFXg7aaBmO/ZDcqaNbUzacadIfc5MHflDaGWK+MS0KucAbOgKX/pKrEzIxXpm0IDWJrPYwTymvn7shkYMJ4ur/0ps19DYOvePx1LPGqHz/zPh7t1JcjlfIQqjquYojLm0wh/wshA7KSKUwo/56o7n+cy2bxspcj22+dcT3N1krc2ZuV+uY+bTWY3rGGRffAkjvjA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ZQdNR7eG3Va/FGA599QZZ5zrKMqAnr6wkDYzDA2kgQjTR9/UIzG3xqN659AXb3aGw1dVZA/q+BMUiA795zbcdq5QssVayF/w9oWAYHyvjiKMTV5mbAv3P2IeUnrmV1V8XTNEDlmC5NT7po/CBZ6ZGDopYwLOMxF1rsn4BDTAQXciU X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b51522d-36c5-4335-c199-08da7f06b6b2 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 21:40:04.1639 (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: 7kGclmAP5Sr8eJ9rvC8D04qDFVtdSJ0FQzvsSyB02+9dWQXv/8GSPbtAlKAnRlGlwvtypV5iX/d1pJdEvdz2vw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0401MB2580 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220815_144013_749580_83CD798D X-CRM114-Status: GOOD ( 11.69 ) 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)