summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJessica Liu <liu.xuemei1@zte.com.cn>2026-03-31 09:30:29 +0800
committerThomas Gleixner <tglx@kernel.org>2026-03-31 10:11:29 +0200
commitaf416cd9b3fb9d17ac7f4cfa12d1ea83dfd0e4be (patch)
tree763a19f3bdc69274ff975273816a2545c9c9d1af /include
parent7aaa8047eafd0bd628065b15757d9b48c5f9c07d (diff)
irqchip/riscv-aplic: Restrict genpd notifier to device tree only
On ACPI systems, the aplic's pm_domain is set to acpi_general_pm_domain, which provides its own power management callbacks (e.g., runtime_suspend via acpi_subsys_runtime_suspend). aplic_pm_add() unconditionally calls dev_pm_genpd_add_notifier() when dev->pm_domain is non‑NULL, leading to a comparison between runtime_suspend and genpd_runtime_suspend. This results in the following errors when ACPI is enabled: riscv-aplic RSCV0002:00: failed to create APLIC context riscv-aplic RSCV0002:00: error -ENODEV: failed to setup APLIC in MSI mode Fix this by checking for dev->of_node before adding or removing the genpd notifier, ensuring it is only used for device tree based systems. Fixes: 95a8ddde3660 ("irqchip/riscv-aplic: Preserve APLIC states across suspend/resume") Signed-off-by: Jessica Liu <liu.xuemei1@zte.com.cn> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260331093029749vRpdH-0qoEqjS0Wnn9M4x@zte.com.cn
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions