Message ID | 20250103-wake_irq-v2-6-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 BE46CE77188 for <linux-riscv@archiver.kernel.org>; Fri, 3 Jan 2025 08:51:50 +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=dMs9LoaToIJ+gozHx+CKfcyWbPCk3fjmjLVoS+x3j5E=; b=psGYsyYZzXtMhmz/f9ldE3IJTH iTEbSSgF0rsMkZ+0qQTxBnx5c81yaWTPvbnEWo3sUwAFVjo4KRGpH6sLrTK0BiL6H7qFrq1yFMkVU 1H0rU5BVKP+BPG2zU6e/VsFMx97Io2Dg6H+vxwT+mg3JRwYr9S1OUATy/Pr+IzX6AQv2hnoDvavFE c1fGbuAYyrCbwL+1TGvNKg+2h2IuloMKHLbGwwXciLEYONuowUIdU/75pVQDfx0umgrETAEoF1GRf aa7vi3UCpE6j7R6HntA9V9VDP/WUZQ/2MupI/h7ADjZyfcY/AH4a+/ZBXYJF3S80SmeYf0OKF28MU pEMs67Fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tTdPF-0000000CW2b-3FPa; Fri, 03 Jan 2025 08:51:45 +0000 Received: from mail-vi1eur05on20619.outbound.protection.outlook.com ([2a01:111:f403:2613::619] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tTdGQ-0000000CTrp-1hgt; Fri, 03 Jan 2025 08:42:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=n9tZLXK96LTb5DMTa0oxE0gtTQ57pmJ5KDGiVAo5R6p6LlRoTZ+iu8KkEo5UgUYQNbWquCHM9RA78fk8JU9VSZnW2J9wt8e3A4+gcsH1KMKiuYYP+apZGkod/oGP9XtcCcG+QVxPf0CNdMBA+rWXMunoJ08FYPzMAkVXQPp/opE5k1aj9aQ+ch/SG4CDjFwKUjge0yK2fUSYunZTFkKuCWCbNo3krtmW1XAlVw/J9/4G+c8Ch0WtPd1eN4s5RpEE1Ae56SNktr4fQXdXJMqvSM7l68k4tDWzB1DXwH0d8eixdN7D+KUaajl3luMjk9tPvfJXrklTvdK1ycxAN/5GKg== 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=tvRxcJQkTcUxL+UY0CT1LkbMh/5QCJDI8WvxLfFze6k=; b=mDSjqbwFRfR3QBmdHtnQiHl9iqy4p3Y9k23qTai+X/b7qDExV6pNeNjFXsanGd8NbZadnDLImjIACu0ZA11GEdGCCUkrfjFBvsJv3/1Xg1OurbxhBwrbKbx6iulnuIo1P5Jm3k3m3DS8xri+sQohAdEvupRsPiHAhRbaUF0UKdexKuh/ch+ZEYbhaTf19Al7DRA+D3ILtzrSE8sL5nj8YzIVpRP26u6IW1g7pQWnwpHE50IN/h2wVtkb4tA77taPACWDiotasaqx4Rpq8D9XnSlZuOYMtQ3yWnOJirFwo7GNmnnv0YCDx9zxVHvzeWC4bH9jxExdTtnKR67TmCUvrg== 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=tvRxcJQkTcUxL+UY0CT1LkbMh/5QCJDI8WvxLfFze6k=; b=fGUYm12T/DQCz0A8aQISU6V492G83wjCCdwnPhKHUQpkImKdXiMH1j4RarlI9ZBQpa9PRrMVEBGyzZknk6LUjWlsYwU1yKR0QtaylOADgELkVd2+DrrXg0Wtge90dn/FplsmSt/y0fQm4lovOt4Bj/QBzC4FwXAoakaZfYm13GzI93n4lxP7ZSA/HEbmCclmOHnUJc9zXXBvoMBk/EOYXJr24rcRFeQh05lVqDooTlXUnPfswqjRv72xTOcS6ls3zvL6lHKjwC5NiJJ8RZSw4WyXR5BeOLajPQbJ/2uxX9qLbwPEZvr7uxjJ6LFWca1+BlfouHIAzPxI+f5SgEo3Yw== 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:29 +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:29 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Date: Fri, 03 Jan 2025 16:41:18 +0800 Subject: [PATCH v2 06/12] rtc: stm32: Use resource managed API to simplify code Message-Id: <20250103-wake_irq-v2-6-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=1529; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=3L5kSry1bFWI+vzXqFXX2mukiWSnq2LH9PLt8NvYjoY=; b=Xu3sHTShAOCn276HCcSAjpYXzwQZYnEZUQUG/28E7wU8gCnra/3hnBowu+NsGfe4WKS3ziS7W vPvGrDFbiDDBnytnoXuv151BKhqwdVR4aBahH4Rtb6gqUmgcr5INuXs 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: ca160c3a-d728-47c1-9059-08dd2bd28e96 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?r94CWFcumbB4ouNkph2vND6kqqGZs0d?= =?utf-8?q?lKrrCasK0sfytGnMdGKuPi8576OR5R0ZpIuXFNLz24M/LoOeg0opoQInrA4nHbLcp?= =?utf-8?q?h0Et/k/zJQe6pXLO9EkkylH7ScHSzsMrL646nZu6wg2tmHMpjPkWhFaULgFwwrftj?= =?utf-8?q?hMv217088/uqHp9KaLgzmRERxuYb5rTBp62gKlV0gRWr+EPpJOh6cLXbMWMYMJgMJ?= =?utf-8?q?WV80ZsUX+o4UeRXZ3oIOyODKV8YPZGu+6g77z2MOrv70BAtmfxnQS15GImD2onhcx?= =?utf-8?q?sDz4uNzR/sLl6mHroNWLEMfIn8I1dme2+Lf1ct4wCyNDJHR4/7t1Q3xNdWxgGN18F?= =?utf-8?q?rAr1ZtH859VO9BtyTemhdMlDYm4Lst4XajO946uO5/0ZiNyvYqy3AgV+xM3FeUbNc?= =?utf-8?q?ad2Ap6AT99iz7FiesuJh0M1ljBN7+p0F757kdYdU8Su6aKnQx8toB0G+IB17d+lfD?= =?utf-8?q?Ku8pT7nxaFLsJEFryaoFLsET4mXdc1y2v1BkyD/VMf8Y0wjMbSBBmC15sej3fv66k?= =?utf-8?q?QvMPK0SQAr9EcWRvYoYMp3QZbUhRJRIvNwTqavrcmfsl/U30mVn51UHJueaXChhrT?= =?utf-8?q?nVh2SqGtZ9STiNsXXh8AsXtkUHm0CSUPaEqhK7ZD307mUY3KzAy498N4q4PevphJv?= =?utf-8?q?Yg4Qq8SRYK8B4pevvcrgiP1FWYG/retes/g8GmNdAApalSktx1gofIVIIh+PFFJ51?= =?utf-8?q?EVtLGRhyqcRCNuTla2foaV0YocHvuuL/yV8O4EXbehodjns34cAB0r6uA7tL6PT5i?= =?utf-8?q?zFIAaZNQ0ZXty14P6AhafT+IQRm+djNb7W7v2SV54T6+icFlZArf56/dPiFLvy9Ne?= =?utf-8?q?AJf5Gq8yLG3Oc6EJkyKS+gmFuWwqprfSFenXhGg9onvL1aKr/d+BD4OcdRJ6ZzaAS?= =?utf-8?q?aWSVT3k2GMUSn7VWZI0FyKuTWxvuSg6+XomEEvKb3C0yJDyl2ZwkGKYLC1tGdQwwO?= =?utf-8?q?8buDkpIkHlfwBOKlFlJEVmtipstCvS+YRUU15bljyDnlrb8VmTlPQP75sr64wfk+O?= =?utf-8?q?F4ZdYYcSmoflYYUdJSYfONqnj5lpgXC9VPdgq8Emm0NChRA4EKodDedW41IJTcxEr?= =?utf-8?q?pDo0tSoOGBfmqDfL9WTj6ElekDXdYtVyZRxWkB+YOM755IlrxpPIWwnrCrY1oyFmo?= =?utf-8?q?JWSwIj32QCjhdRinSqkCfAC6+Tqk6kfyn0zWyX9PpUAHJcMtwmcsngrfq3e9/B3qp?= =?utf-8?q?8XZPgBX/3V3n+J3M41PqRuuTiXTur1CF63n9ojVAGXUcIL4kKldGC6L2Ye30AalmE?= =?utf-8?q?wkx3+GUHeJorfcW7oREA4wt/geh2G1N/pIa89XQNGtTuvYSHT3fDSZSNXdemh90kQ?= =?utf-8?q?1K3zfeJVMMUZmtugVYJHhv/yAdKjl5l1TXhiH0EKFMdoh6QVuJ68r7HnkH1yi1tzw?= =?utf-8?q?+E1zlLsO6VkyN4pE06jp3E2SKRGNW1lFA=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?LqDGQTaGLz57pt9o3+FKbgwQnNse?= =?utf-8?q?ZoU5+TyUZFtuf27+0YMXFNBoFo65gCcup+Nep7fCGasLxQkB10ck5d5qjxhnzwG/e?= =?utf-8?q?Rbqr1V5CBNUm1Z7iQkka4amSM6yyAURmelZ8+L2LuT3hSbiQeZdN/l2HImukN/Tqw?= =?utf-8?q?krDx348cw43UrZvVk7ymqXdc+6pWyBZfjGrPlfOmC74eRTiYeFjGnLwpnFMy7PB5a?= =?utf-8?q?u3cOgjoSwesZxEw/hS2D0h52WBO5yNQYHP7KOXWucEhJu6SQ6WWVJDFDrkJ/R+wYM?= =?utf-8?q?pzDtxHeDSxaVHs4O+6iSJdmLAoPgjTjiwDAYRsehcjkgutLf8qbyjIT6hQAgbkIsN?= =?utf-8?q?S5aeGRYCziUfVrgRvlAvJ4Lw8qM9uWBXWqqMcor0FOTAvyWvOknWMTbWfQ3gS0r2t?= =?utf-8?q?toKfn0zGukdl+PWZSQkecB5F0UuLQm8Z/LtYNIAa89csPYn0DRT3esEc8Mgbfb0sM?= =?utf-8?q?+1jOHbIWUbaNlQjlGh7B1Yz03/u8YkG9CYfmarjRf0Bx44DIczOctboeqYjcruImI?= =?utf-8?q?1YHX6JNLtTUlrP7C9o2lo4pTLvEKlrAB72ytOaa7LQS+/GJS3cf3ZQuXeo5fRIuOd?= =?utf-8?q?fg4IGiD7uX1do4J7DkwrbwH82eFayuv1dqCvoktmEbK6SyVI7ypOaMAAfZZHrJ5J4?= =?utf-8?q?NBqtpXWN9ua+xQa4s+3JpE/HwCC92oiqPQvmuh2OJMIw80TTO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Tenant-Network-Message-Id: ca160c3a-d728-47c1-9059-08dd2bd28e96 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:29.2992 (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: dkR6W/pclZiIsEJzYoDiIo3vnWW/iJPYiyS5Q0PmwImUWFPl9uIhTvvxsyInNit2cAyD4JzwhaUbi+W4YceHAQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7599 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250103_004238_444934_094B7173 X-CRM114-Status: GOOD ( 10.98 ) 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-stm32.c b/drivers/rtc/rtc-stm32.c index 9f1a019ec8afa57245c6d40d378ec50fdcd64deb..183017b0d33d10481f94891de24cf2eee95893f5 100644 --- a/drivers/rtc/rtc-stm32.c +++ b/drivers/rtc/rtc-stm32.c @@ -1151,11 +1151,11 @@ static int stm32_rtc_probe(struct platform_device *pdev) goto err; } - ret = device_init_wakeup(&pdev->dev, true); + ret = devm_device_init_wakeup(&pdev->dev); if (ret) goto err; - ret = dev_pm_set_wake_irq(&pdev->dev, rtc->irq_alarm); + ret = devm_pm_set_wake_irq(&pdev->dev, rtc->irq_alarm); if (ret) goto err; @@ -1216,9 +1216,6 @@ static int stm32_rtc_probe(struct platform_device *pdev) if (rtc->data->need_dbp) regmap_update_bits(rtc->dbp, rtc->dbp_reg, rtc->dbp_mask, 0); - dev_pm_clear_wake_irq(&pdev->dev); - device_init_wakeup(&pdev->dev, false); - return ret; } @@ -1245,9 +1242,6 @@ static void stm32_rtc_remove(struct platform_device *pdev) /* Enable backup domain write protection if needed */ if (rtc->data->need_dbp) regmap_update_bits(rtc->dbp, rtc->dbp_reg, rtc->dbp_mask, 0); - - dev_pm_clear_wake_irq(&pdev->dev); - device_init_wakeup(&pdev->dev, false); } static int stm32_rtc_suspend(struct device *dev)