From patchwork Thu Aug 18 15:11:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 12947293 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 06661C00140 for ; Thu, 18 Aug 2022 15:17:35 +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=r+Zd5rPZrQsKSo 2isFvCNA+QeIVhOCx1v4tbtUqb/IXt07WTLL3C8Kpj/TY8wLbLskDmXcwLeBydx0I66tthMtgM36a hOtFvzUCOehZ9EGTB1GBREuVuG1KJ24KpXZSXh+wcPyr0ryyn/LoG/Ia7IGeL2KxQ5i+d66z2oVxJ NsMFp2Oz6NAh8VGzVjq5F9+39gndpeH6177tSn8oxdbrV4FeWv8doYIOf0urDVsdnPhyyICSE7SJo +hPsmkaX2Horx/q6mX5SWD9UTV8majy9Q7oaj9yQwr9dTVMWQnVLCLNcXXiMBZ3BWgi3cD9lF9HsD 9cQwmXbCDROOZXCXfg4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOhFc-006Vpn-Ns; Thu, 18 Aug 2022 15:16:06 +0000 Received: from mail-am6eur05on2080.outbound.protection.outlook.com ([40.107.22.80] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOhBd-006TWK-Tt for linux-arm-kernel@lists.infradead.org; Thu, 18 Aug 2022 15:11:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FilaJm8WJ4mv8K7SkKAnTzQCdvO8KB974EEYb18SnExW3Kr2/c8KtA7jwTnLvoRp6X4zKZH9fLLyyhw9ek1+rp719oWS6An6OGGf0dfHi9CVjf936F0VqIv7nNjPeoik/oerqLQgOKLaCR56V1G1uup9l73Mh4IQLA/z8bw5zqJbZxpgGVq9J1NRssWBrvDVhNj4VYzgTT6WPkseEENNE6P6ULrlu35jVq0HTUiLv1d7IKRs+lo4AvQqjD4J0z0CpRj1XZ2ADrwGigNdd2ApMXIvwK7iywi3/TJeFGoiV7Qi6NUerOkYldFV6x6eCKBQu7+/FnR1kahXuTDLOg7oug== 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=BprdSuTI+P64SOqeTQzWn/O+FrdrqbR5bcNvLLtsq80lt/lyxqdTo+QiN+aVhRywr2kPZSNk3fwQYKupVI/xmRyh2GmP3IWtXz+Fuq20bEDpfg/tvmXeu6p2Wyes+VQVk73QTH9/IZlttHpQQL7/gcWd1ZgKrG1SYm8+TPqN2fXbKkGg5UTxG7lGfbXTLiI+nrGzAkfllVNeyChBTvC74OYHsweoIpDcLgefFjpd8lpR8oTaKeJA1hq5jDC07YwAQleNhMG/DQyff2PZ8etGGK06v+xF4fcDHnoqrFQgwdfYkb+10l5j2tx0q3oAuIZK6QOwj0fn8f13wtwyCEij0A== 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=JqOYbackT+upKDF5Qbg15kkR77MfoYd0HVJPnnS0YH8eMAFx0fu8kAwAMHlNVM6nuHwfIvknSuAj13jCihQNyxuGqq/Ilq90SmFLcydGAirjtPbQMjTWNrZUHuIDeR/SPNjhGyaxFOPqMMrzC/Myc3Tr45+G7czLweLDeBjOZGc= 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 AM0PR04MB5713.eurprd04.prod.outlook.com (2603:10a6:208:125::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5546.16; Thu, 18 Aug 2022 15:11:53 +0000 Received: from PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::40a9:93e4:75d4:f73c]) by PAXPR04MB9186.eurprd04.prod.outlook.com ([fe80::40a9:93e4:75d4:f73c%3]) with mapi id 15.20.5546.016; Thu, 18 Aug 2022 15:11:53 +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 v6 1/4] irqchip: allow pass down .pm field at IRQCHIP_PLATFORM_DRIVER_END Date: Thu, 18 Aug 2022 10:11:24 -0500 Message-Id: <20220818151127.2449064-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220818151127.2449064-1-Frank.Li@nxp.com> References: <20220818151127.2449064-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR13CA0141.namprd13.prod.outlook.com (2603:10b6:a03:2c6::26) 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: 7e208eae-693c-42e4-9a3a-08da812bfb8d X-MS-TrafficTypeDiagnostic: AM0PR04MB5713:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bvfwWvBA5amL9yHYFfkpE1WDS7ibdl1vEbbL9hWOH0tBFiWlHoV21qL5yGR0mQLbk/BqW2JIFW3YZTY0SMd/eWt3fRjXEefEWwGBBotCtcfKpa0dTXOdvN5jmeOTXQpZoVWu1ZyBK4W45QhUpwgsVEg0vrK1qVKlC1LYSTAdsaYvYyHHOuGor+rLY69CSV/JFGV0dh3CqcoR2sv1CilZDlXNK0M0/lia2xhxVOt9SGmqp7bYpYLbqwkmAVEA74ya6Z3ysEafZPbIMYJNDmRMzOZJdGckGgih62oZj8Ky1kQBM68U0NqvT/4ww2VhsBvMbkvk7hua8ZaN7ha+CyF7qP3vTpJT5ls7frw5j5noGgN0bHdHipiNs1SxDaaHFWSuUJwWs+bmLwCL+0fPv8zM0U3kHOhZU/QT7Ks1z0N0Nq0lBXhx+1GWYvJTzwPeb8jkYM0O5VoUeUcL6rRnHpPqNr76Fm94aIqBWoDi8M4XDnzZEoAxBgNSaBQ/8ZXzxP2z2TvLTEpzH6TRAJy9/sJvL2t9UYol0fDpYGhRU0qieA61yttryd3gt0esnmtED1PaGQkRWr/G7g89LmOXfLxmotUqQe5wfiMbwc42IMIEdw11O4InGoAWT6GwjwScMuXucOj+NhEi1S0J9B/SalR9PqmdOKaBZnuA03gmFKTj9idbj1xBhw+JIfBHUIbBf1L6TOJMjrWgkbszrjZgb9aFOVNQWxreR1Z1bVIwYtHmw2mvkyzzZQORfnAvlZHe5dkPJSseLOzI7B+tYcazWiLOfw== 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)(136003)(346002)(366004)(376002)(39860400002)(396003)(2616005)(316002)(1076003)(186003)(83380400001)(36756003)(38350700002)(38100700002)(6506007)(52116002)(4326008)(66946007)(66476007)(66556008)(2906002)(8676002)(6486002)(86362001)(6512007)(41300700001)(478600001)(26005)(6666004)(8936002)(5660300002)(7416002)(142923001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PrJHPDQliS87q+bg9R7PHgtQ2fJtToVoan0SFxHjojiiV/YvfAbKt8nAkGmR2wYedH/dnH2Pao4bS0+bAUut1hvPazRRrAX8Z3X/SVZ5AtVXAj85GS5jrH82dgSTDHUbG7qhzfGXnIk3vJcQJKQ5lMGCfMy2VLAX7sxQczhGwJfMuWZ0hhNZt0CyK/PwRjYumuXjfzrlXh50G6TwavpoHojz77x8MGe714UIrMah17kFYeEt+mt5eeicl3eFdpQpxzCG+Fd3rcarmkYwg27jh3sYvhTp5cWGcOPFqoedfZM2FxNpSVsLvBZdkWvnZpPWzMiyKku8mP7cj3gXhETKXUNFL5+T/hKh6iSdFPdkm9R2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aedkEGh+EHu8N6y1tZ6IuCt1K5/178dt/2iN0xWQpzhy3/fCnbLZE8R0c8Z4OUSF8uSdHhQR9fsnVwZ7LBZQ+CknEDHzQvWq1Rmq5fb1rl+3iL6Em39mkmoYmDyD9yz96tNbR2BrYuzZqqhdE= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e208eae-693c-42e4-9a3a-08da812bfb8d X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9186.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2022 15:11:53.4971 (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: 4jobOm0K/E/a/JCE+0jARUIrdM3wjIzW8CELUJ6HOQMOMXyGj6IOjdQMLsQs7PsGHF/Gt8VvlpGXLD/oxzG9aA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5713 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220818_081158_001272_EF6A5A7D X-CRM114-Status: GOOD ( 11.42 ) 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)