Message ID | 20250103-wake_irq-v2-11-e3aeff5e9966@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=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 18FE1E7718F for <linux-arm-kernel@archiver.kernel.org>; Fri, 3 Jan 2025 08:57:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=SsAJU3FUgsUM88m4mSGw1WR2K15UVHFt8h4YUCR7Im8=; b=47YVXPVvqlyCej+D+5XoXqqv1Y UbLPWLM+koxWmJ97V/82XxBBchAYb83W0Ayq5dl/I3ZXmG39KPXb/VkhCkHU5TskO2338PhrVqBLK CdekFU4ymnKqN8HS7wZZnz9cPjYFihrQC5IXr/1WUVjDJpRgOyp69PC6Rzv0Wb3+bkXkZAsavUobA rzs+pUcdBOH/hfmBMxjkq8OOZlPyf5aeNkmUETVTVEYBI2PrakCqzRTIWS6vwmpQQw2Kd7rGm/7iV dPayvOXGvzJgSVrHx67ezVBipdxeEzhzuulTLafNXtgOjTMcOXUTYvtA6YiRWHbNb+wbv5bIgnDhg xiKRnFVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tTdUz-0000000CX6J-0J9H; Fri, 03 Jan 2025 08:57:41 +0000 Received: from mail-db8eur05on20626.outbound.protection.outlook.com ([2a01:111:f403:2614::626] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tTdGq-0000000CTzT-03Ds; Fri, 03 Jan 2025 08:43:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=agKHHPyfrGCfx1/RmupgmGQhMk0tyWaM3hP+kHcOKnIvGBYN7pFNiq+1Dnll3ulGM7oH35XMgZQ+JpkCxcIS+bDxUMx5pZTDMl8rAwIIfrOPO8fHFyDdp2jys6TR/nlW943GEGzS2tC7q3bfeoEOhKwkz8KS5bucUQly9JjNttzb+HFIz/emWfl1OYabuafAr55aDwyUfsGzrXqB0yAV2620xj/cRLAfoeOHlb/vWvAQl7tE9js9DxlROY3sYs8aCSCvPuQ080pMR7dUxbtlg+iGMP25teToCT9rSU/eBw2OuoungZKYxx02CjmgFatIDiT8EcdelIesFZMdm7UAVw== 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=SsAJU3FUgsUM88m4mSGw1WR2K15UVHFt8h4YUCR7Im8=; b=KFWpXpecfbdDklWKQJShAadsHNCAfzS9k0xlz2emBIuTFumYWd6TriMe2U69HspmGoyreD5bxVZeq4BwoaKD9yQukeFDqOtYIWp7sMCyBvjJs9KUmXHKs1z9+ULYt3Fuv1F53USMx/jxdqCxLdy7NbgGqTeEM6787vqP8D4NSQgy7qQS5jB3gKi1AT2yEKsDEEzPy2JoicGcD67eihqYB+MV1DwTgawRb4LtLM8+A/oX2ejzI1fBhFi9OxNyrKkj0GM3gefxWeLULh4Mky3jBMWsHaOjt1yVFv9KiIKWXe74vUa6b7iLnYC+CrAPx7vXxAUFKlAgIFj3MpTzjno6lA== 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=SsAJU3FUgsUM88m4mSGw1WR2K15UVHFt8h4YUCR7Im8=; b=fdyth0dHKKfYgg5y0izdeQ9GTx/ypIiXzeY+cFZrLQMyvN2DqlvMKanwSi/AY5eM8h+P1pxMVrPeo1LoQiIdGzYUdBmP2801/p0o3cSX30JqGzNu87oE7gwYo4HCQAn4Ooh1T/uN8Epb39nrRoNSLXxqiLF1NZf8oA8YDWAZeIRuTeJEkvOKmYifR3zyLwjsujqW73ZBw6fRFcEo6T5BDZWU8DZvhnGEPM94RE+fHgBwuz09+u+3VZ9MCTTp4smx8QoSQYAnTaxkwlTHj9spuE28Eb3Ot4fG1wdN7YpWmAQER75UcUa7ZVAZ0KjH5bZaueS9U/1Q6gdgB/4r2Kw3BA== 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:57 +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:57 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Date: Fri, 03 Jan 2025 16:41:23 +0800 Subject: [PATCH v2 11/12] rtc: mpfs: Use devm_pm_set_wake_irq Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250103-wake_irq-v2-11-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=1347; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=7sZhYfT/a75JkuPsULgAYPAtV5pnc5lWQRqy0mNIenc=; b=pqdku+mazAjUpAScAyFxwTXob9j8RqYQyx11Y5TT6Khed5JfepTp0XYtWnVT8pAuswCVWDRMT m0ycP6frFQfBnZK6G/n8bGNw81H3gFP7Ep6EZzK7MuASSSJ+fCzeR3+ 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: 1e6d6526-2acb-423c-4460-08dd2bd29f2e 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?dXMPOlgsVzN+p6FIojtGUpAPQ3W302X?= =?utf-8?q?1XW6mHHAn/7uIOyE1dihHo4cHgAf8bWkKTAx79PuPiXE0PRCHzWNf+A/uux9NKA4L?= =?utf-8?q?maS8dcWGEBvS6h5CNsDBd74diihI+UxX1BgmGPMqt9yzm0QdZHmecwqD3swJyUL/A?= =?utf-8?q?VE316ZmU7Q46/bm5/0hMNhyNS0Q0Teeh5TMppzJTu1VxSnkf0NzXh8mKpZzpOs8oT?= =?utf-8?q?UTKIPIR1AtHO2L9sX99FIC6hECrWZpqRe8bgqtGoLe99H8I5l8ay7sLJrXLCyaErw?= =?utf-8?q?hfuQuMea5dhP8E6CU/Ba5GN+wH/GldomlWVuadDds+T7FYAPIEkwxN6diWC/7z7hW?= =?utf-8?q?4e9MpxkAMZ3nHY1DvShskCLhLevuu8XuiEqqJuo6ZIzLT0Ti7g2zAgk0NsFhm8b93?= =?utf-8?q?vXp008H4F01cwA5NnG/mfQfju+uUbXqcyo4bVVKg6fXyqCm/AIwf2Qi+DQ8YBtAiF?= =?utf-8?q?9zCY0W/FuklL//fA8ZARxcZgLRaNhoSHuH3v1R8n+6zh+dTnMH0i8sG0gVTEdTcBR?= =?utf-8?q?xKi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NHHpmYfNgqnbnhJkb/w=3D=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?vcytUb16kEWuXHijrmukdgWXN370?= =?utf-8?q?TH4pJDmPgDFBTcCYlG8OJPmuLLdWbKzolTMdo7s/c76E0seypRZtsw8QHANh74mmr?= =?utf-8?q?erkhmOGNJiqakq2M50BMS7tmzWE1b73J9/XvNktXkugO01YPd7AO2uwPwPCs1n+p6?= =?utf-8?q?yC2uYmvBp6iVuBj4HLesWvUJCb+2Z/dRe8mGo8fVMgK2SM1ghad5+cnIt6gqD6/GJ?= =?utf-8?q?YzhWBmmYnOv2r3gzx8z41dAobhvhKq4GLoxk3Z9PmTtvlQEBvaqDvHL4W//5jXxxi?= =?utf-8?q?c2SzCSkCwkNjZDoAJKPLPS1VSlwzkWnkeAftX9Ou6F0lJwd2X7yM+Tg2msNZzVwzF?= =?utf-8?q?1Ug6792IzEeEz6wGHRPgIQdcZr0JRwZEj9joWb2SNk+hkQK2sVRsiUOwylO3nCRPu?= =?utf-8?q?5PmwdXE6oiqYYjd/9bxIXt4l+dxvkJT9etZLLxLnnJ8f9pjIF+B+ZN7w4MMQKpY7m?= =?utf-8?q?6vJS6QIdUwf+jgS4Deb2rFQEXttcAxwPMd7wZWfrzwo5fyVCwkzyrqnRa7CzPRpVR?= =?utf-8?q?avO3XU6xsqguDtAFYSGWrNVtLIspTUswL6OG7ZtlwNUmQI1jU25x6BXsEYEyvNEtp?= =?utf-8?q?yQeq/cU/D9DoKECSSBQGqZw2Z2W8oOycxSb6DwbXU6RXhM7S4+HBGfgGJx3UlHDPD?= =?utf-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?utf-8?q?fL2CpdWxawcy?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e6d6526-2acb-423c-4460-08dd2bd29f2e 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:57.1509 (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: AcKLnmumH38JFy6B8vQngVlbJeSSXnBV/m/ezhoyeuG+wTQhYa9/o71OXmuHdzKAKu3z/v7ZoBqFSAZUJjf9WA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7599 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250103_004304_057849_96E2ABD2 X-CRM114-Status: GOOD ( 11.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
pm: Introduce devm_pm_set_wake_irq
|
expand
|
diff --git a/drivers/rtc/rtc-mpfs.c b/drivers/rtc/rtc-mpfs.c index 3892b0f9917fa7bc4f732cfe2c2b2f548ba7429f..5a38649cbd43b3c6f2fec5db95c4f0013deb2a08 100644 --- a/drivers/rtc/rtc-mpfs.c +++ b/drivers/rtc/rtc-mpfs.c @@ -267,18 +267,13 @@ static int mpfs_rtc_probe(struct platform_device *pdev) dev_info(&pdev->dev, "prescaler set to: %lu\n", prescaler); device_init_wakeup(&pdev->dev, true); - ret = dev_pm_set_wake_irq(&pdev->dev, wakeup_irq); + ret = devm_pm_set_wake_irq(&pdev->dev, wakeup_irq); if (ret) dev_err(&pdev->dev, "failed to enable irq wake\n"); return devm_rtc_register_device(rtcdev->rtc); } -static void mpfs_rtc_remove(struct platform_device *pdev) -{ - dev_pm_clear_wake_irq(&pdev->dev); -} - static const struct of_device_id mpfs_rtc_of_match[] = { { .compatible = "microchip,mpfs-rtc" }, { } @@ -288,7 +283,6 @@ MODULE_DEVICE_TABLE(of, mpfs_rtc_of_match); static struct platform_driver mpfs_rtc_driver = { .probe = mpfs_rtc_probe, - .remove = mpfs_rtc_remove, .driver = { .name = "mpfs_rtc", .of_match_table = mpfs_rtc_of_match,