summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>2026-08-21 22:10:24 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2026-08-23 21:23:57 +0200
commitea0ef2e7f83be647be114d8cfaf701a5146eaa90 (patch)
tree2491baed719f2be5bc52038b322aec1df70259e4
parent960987abe58d175b94869fb7aca72d7b931b584f (diff)
downloadlinux-ea0ef2e7f83be647be114d8cfaf701a5146eaa90.tar.gz
linux-ea0ef2e7f83be647be114d8cfaf701a5146eaa90.zip
rtc: rzn1: Use pm_runtime_put_sync()
pm_runtime_put() may trigger the idle check after pm_runtime_disable() is run as part of devm_pm_runtime_enable()'s cleanup action, leaving runtime PM active. Use pm_runtime_put_sync() to ensure the idle check runs synchronously. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://patch.msgid.link/20260821211032.13554-10-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r--drivers/rtc/rtc-rzn1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-rzn1.c b/drivers/rtc/rtc-rzn1.c
index 12c52003a7dc..84ec8dc397e5 100644
--- a/drivers/rtc/rtc-rzn1.c
+++ b/drivers/rtc/rtc-rzn1.c
@@ -493,7 +493,7 @@ static int rzn1_rtc_probe(struct platform_device *pdev)
return 0;
dis_runtime_pm:
- pm_runtime_put(&pdev->dev);
+ pm_runtime_put_sync(&pdev->dev);
return ret;
}
@@ -505,7 +505,7 @@ static void rzn1_rtc_remove(struct platform_device *pdev)
/* Disable all interrupts */
writel(0, rtc->base + RZN1_RTC_CTL1);
- pm_runtime_put(&pdev->dev);
+ pm_runtime_put_sync(&pdev->dev);
}
static const struct of_device_id rzn1_rtc_of_match[] = {