Message ID | 20250103-wake_irq-v2-9-e3aeff5e9966@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-riscv-bounces+linux-riscv=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 DE368E77188 for <linux-riscv@archiver.kernel.org>; Fri, 3 Jan 2025 08:55:23 +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:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=pGOX2jb3HqPmTJ5otbJvvs0HLQQh9ahLhmtSC2Q247w=; b=d8+5KgidM+MBCKakfu+4W+xGKt NrsixKfhHhErTi8AiXtB072KnHeopoCtyTLc0ztlDEM7L6vuAYvKdeXmpybseDT+tHZ7vq2awYrqJ KDOp1AHY2WtR2lchRpwnAWM95sx9JXHk2rsiQJ0ZgHebLGzbkdbXeWdepVbLXmWdy5q6ITIkcY7kF oxpwbLcfwHj5Md+XuxzzwlrGNGmiRFPz/3Q+FOw1irXVOrrV4A90Wl6o60dfGSdWI5Ks5MZ7KWa7P esoTmyH9DvjYLKImqcLnlMr8onXiUf2mHXvz2VOAceyessf5bnF2WaiqZX+vSfQdKksIUFnbJiBVC 8sro+zqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tTdSh-0000000CWcI-0RQn; Fri, 03 Jan 2025 08:55:19 +0000 Received: from mail-vi1eur05on2060d.outbound.protection.outlook.com ([2a01:111:f403:2613::60d] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tTdGf-0000000CTxR-3mCC; Fri, 03 Jan 2025 08:42:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EeC+NfazkdKVsZEXy+eIyBv1r+W/1dFPndPPVEIauj05/h19cguDfpWxoFma3ZSfh7hjuRIiBaN04DBjujwJpaXnmoGxv89bwnzdx/jHce6dqT6M0Dg9VsTkiJCOuXi+PXb31Obbbscj2MqUjnIlKfINgciGhq9trrBsdEQlqUc+/6vdoN3Oy7Oybl+DR0dxQ1+3gseQPTMw2eHdKWP5+YD3cSigB9Yb+gYWB4aLRxi2DR1T5NACJ2IRWthw4OKAXhuAhIvRcL5B5kB4FspUuyHn0XbOgvKW5n50s3O0uXm4I6SnhOkPWucd0wyhap6vmsyWKT8wARhDxYOzbKwdlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ukcfnak6rASj1mOqRwYrxQ2oQzH5Bwejo3Xly8lLTrQ=; b=wB29f7EcuCWHP7IQcXJoAd6u/aN0JnFIy/SdSRY6OOQdPkJs041KTCR/djxq16CaBNFb4p9XxvKTrO3t5ecrEpezIn1E3wXc07Czc8d6a6A68I+nGHX56uA5KrwdaBYi9d/r5wqazvIL72FdjMwmzWBWEgVMZriI+K/Z6yqg7eGnzP60NZa1wwofTkSNsiRVVSSWgIa1mop3upWQ0OLt69mPgQUg271EFsAIcaRtAEpuwDY3niosKaVlZ99UpBIxhoNH8atTYAJ/vKic/cA61jM5Of6jxM7wPNboYvhWkOw9tlIjLToo6b9lM73A/+9YsuWhIO/rM5jgrNOxeKCkHg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ukcfnak6rASj1mOqRwYrxQ2oQzH5Bwejo3Xly8lLTrQ=; b=NtKJBg3EGttxxA9nZ55BpiDOyMVPOopPHXo2Afp1VKK2bLtQxEI9Rgyd5DeyQK9BGUmWgv16I3by1GR21cVkUbru+2nNIjS47r8tWTWpTg4PLt8oYjTrBYuzW2MT3cAluG/RsZ3uiL06zpZK7w8KSVtvyCdMMS/5Is7YPK8orGn9R3AGtDBDYpUdsBpk3aX8MVdI+KqTouIjnufZyYl9f7czq3fxAD3m3rcmPMlf8jEo9kZmAdOHIA9dQC29rE6Sf5Ikc2MiEH4vLyJZI8gwzhi0/QxF3t+mGIHVz5j0jioxx9vRT7pgmlh5T1q842SgUqJ13aEviRUWSEZ3Z3+S3A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by PA4PR04MB7599.eurprd04.prod.outlook.com (2603:10a6:102:ea::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.14; Fri, 3 Jan 2025 08:42:46 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%5]) with mapi id 15.20.8314.013; Fri, 3 Jan 2025 08:42:46 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Date: Fri, 03 Jan 2025 16:41:21 +0800 Subject: [PATCH v2 09/12] rtc: pm8xxx: Use devm_pm_set_wake_irq Message-Id: <20250103-wake_irq-v2-9-e3aeff5e9966@nxp.com> References: <20250103-wake_irq-v2-0-e3aeff5e9966@nxp.com> In-Reply-To: <20250103-wake_irq-v2-0-e3aeff5e9966@nxp.com> To: "Rafael J. Wysocki" <rafael@kernel.org>, Len Brown <len.brown@intel.com>, Pavel Machek <pavel@ucw.cz>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Linus Walleij <linus.walleij@linaro.org>, Conor Dooley <conor.dooley@microchip.com>, Daire McNamara <daire.mcnamara@microchip.com> Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-rtc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-riscv@lists.infradead.org, Peng Fan <peng.fan@nxp.com> X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1735893689; l=1049; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=GvTygPs23OU+WJ4Ssa5ar7+WSYAkUwf2a/2JL3pAL9Y=; b=JPMab25FiuphWW4zg1wpUHsKfC8j4X4PmEXhMG8FlB//Cag8g4nboWS7yj9Rm1f9sO6jqHfMb iu/i03TNnEhDEbRkTdAsJEVEhnN6H6MmGZg2Oh/wuw9wXjT9YcZ2lzK X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR02CA0003.apcprd02.prod.outlook.com (2603:1096:4:194::13) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|PA4PR04MB7599:EE_ X-MS-Office365-Filtering-Correlation-Id: 47b8be2a-229a-43b3-2ae0-08dd2bd2985b X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?6DfbLhVCmFgWGOuA7a1bzgkn/7N1GwE?= =?utf-8?q?2QmMKjDu+7B2oyar4IvLmgGLxjehspTOnpbISzCFoLzDCt2laI54cJ1jkCD/ghVyQ?= =?utf-8?q?ZNMbeKceQ7g0e2ROHllMAaP0xJ9qXI+gnAlpUeoa0d8et8G8V+NPf30EJvyHwRS5i?= =?utf-8?q?wWrUGsM+GuWXJnzG8zh4D8DYcTsxaDQcc10mkqsvDp3OLDb1w8qouqS6a5HwlAXIg?= =?utf-8?q?RoRQaCmqDn5D59Myj1LM9s0gSLpi71Shqsx7yA97YvhZunHskdAus2ivqhPyEuE7J?= =?utf-8?q?0oCjtuD7Ka7o6iBhgeh5+3JzSEcB/StP1qVLppv8bJW4/OiC5ePblVOV93p4ULnfs?= =?utf-8?q?lu3P+IOB0A2RHEJuPgTrsXjNIQWl7dSiiDLWxXSsUB8Eom0R0Nh8JefTCzmciKev9?= =?utf-8?q?3frX1HfqW8rwUQtu+HWETC86DM6X0NOKJPm2dQcn7vL/wVPtg71RR323uV8EMHnKJ?= =?utf-8?q?3OnLEY1P1DVLjl2Qn82Je6jq+J76xzPvKbw4O0xG/LSYFhqNR2d/b3DubcOVxbl6/?= =?utf-8?q?afmk1GaRj0p5tlh9H5LnFwS6R0I+d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D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ovog8oyPhWj9pMbBgNFBCnUTI8aZ?= =?utf-8?q?Y6N0ow0AH/TjpWGzenNq3KhYj98TMe+jgb6of/mWJBA3vmi1+hyXO0ZVk+PtMn6lT?= =?utf-8?q?3yBBlf1qrB9/ttMhVNJmvLS2GYPXqx3eXyhI3WTTXwwKC09KrnKgHtGBuQoMSNsu8?= =?utf-8?q?AabCF1PnX6OWJRAhK0fkzc3wq8cWFT+dpn9N6zqhZ6LG8/Mj9qWSIU2fn+Lyzm4DB?= =?utf-8?q?KNKkXTKspY6EpIyG2rhP/bA9bNKI8Wpp7dcexgDP6YOn0nRlT/46HLFg93XaSvY3L?= =?utf-8?q?CitjutXiNHO61XxQjjRs5K18O0/OHxVOINXRBOjFJ1H+1PobQzy/XX5IkADfjl5Rf?= =?utf-8?q?Rrbh08NgKlz6gBmo3sfTTvjCxL1fV7HXySb8jkY+iVDpd+l+2NLD8UQhhNCMK0Woa?= =?utf-8?q?y3VwQ1ckdIFzkmvdT5JA7zyCW6MBEjohjsM8ETAzohp3mqhVrxE0q0pgu5l97Qzl2?= =?utf-8?q?Trc0Hm3j+674uBu3bpLFhW3TT39pZY8MIgaFKxyUpa+M4mDvlm2OH9fsCB9rRvSk8?= =?utf-8?q?zm50KzulBD509a6tlVBbdnttGKwVcog3v0DKjx+xmgjGnGzas0SKLbcswXNzn+Bew?= =?utf-8?q?QOhVFtmUSSsoXMNP3dH5dsEf88EdSPilXALZeDJF5WTave/1Cf1Ww/r/faEvqhPuj?= =?utf-8?q?N/ucOzvm9bFy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Org: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47b8be2a-229a-43b3-2ae0-08dd2bd2985b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2025 08:42:46.4576 (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: q5Lh40lqSLsdrDSJw2rae9QAHrJbyEHMLWXM7lLzA09cYN8S6y6ee7bR5+SvM7ZYvUMdwDroOR8zAL/Y3whlQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7599 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250103_004253_942491_4EA1D3D5 X-CRM114-Status: GOOD ( 11.69 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-riscv/> List-Post: <mailto:linux-riscv@lists.infradead.org> List-Help: <mailto:linux-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" <linux-riscv-bounces@lists.infradead.org> Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org |
Series |
pm: Introduce devm_pm_set_wake_irq
|
expand
|
Context | Check | Description |
---|---|---|
conchuod/vmtest-fixes-PR | fail | merge-conflict |
diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c index 2f32187ecc8d3276a451a317ab83446b7b04ecc8..f1b620b168fcca8c640e4beaaf7e8c17776c5ed9 100644 --- a/drivers/rtc/rtc-pm8xxx.c +++ b/drivers/rtc/rtc-pm8xxx.c @@ -523,21 +523,11 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev) if (rc) return rc; - rc = dev_pm_set_wake_irq(&pdev->dev, rtc_dd->alarm_irq); - if (rc) - return rc; - - return 0; -} - -static void pm8xxx_remove(struct platform_device *pdev) -{ - dev_pm_clear_wake_irq(&pdev->dev); + return devm_pm_set_wake_irq(&pdev->dev, rtc_dd->alarm_irq); } static struct platform_driver pm8xxx_rtc_driver = { .probe = pm8xxx_rtc_probe, - .remove = pm8xxx_remove, .driver = { .name = "rtc-pm8xxx", .of_match_table = pm8xxx_id_table,