]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
irqchip/renesas-rzv2h: Fix error path in rzv2h_icu_probe_common()
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 23 Mar 2026 12:49:14 +0000 (12:49 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 11:25:56 +0000 (13:25 +0200)
[ Upstream commit 897cf98926429c8671a9009442883c2f62deae96 ]

Replace pm_runtime_put() with pm_runtime_put_sync() when
irq_domain_create_hierarchy() fails to ensure the device suspends
synchronously before devres cleanup disables runtime PM via
pm_runtime_disable().

Fixes: 5ec8cabc3b86 ("irqchip/renesas-rzv2h: Use devm_pm_runtime_enable()")
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260323124917.41602-1-biju.das.jz@bp.renesas.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-renesas-rzv2h.c

index 9b487120f011327301b2582cb1e2a5d7635f2867..85eb194dfe3b2018187feeac8870d7ff7957e909 100644 (file)
@@ -567,7 +567,7 @@ static int rzv2h_icu_probe_common(struct platform_device *pdev, struct device_no
        return 0;
 
 pm_put:
-       pm_runtime_put(&pdev->dev);
+       pm_runtime_put_sync(&pdev->dev);
 
        return ret;
 }