From 2d58b4b47078c19f6c1e110c619009dcbeaf8b53 Mon Sep 17 00:00:00 2001 From: Markus Fritsche Date: Thu, 16 Apr 2026 23:53:04 +0200 Subject: [PATCH 4/9] input: rk805-pwrkey: register wake IRQ via dev_pm_set_wake_irq device_init_wakeup() only marks the device as wakeup-capable; without dev_pm_set_wake_irq() the PM core never arms the IRQ. Wire up the wake-IRQ so the PMIC power key can wake the system from suspend. Generated-by: Claude Opus 4.6 Signed-off-by: Markus Fritsche --- drivers/input/misc/rk805-pwrkey.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/input/misc/rk805-pwrkey.c b/drivers/input/misc/rk805-pwrkey.c index 76873aa005b4..dd0008e25d6d 100644 --- a/drivers/input/misc/rk805-pwrkey.c +++ b/drivers/input/misc/rk805-pwrkey.c @@ -14,6 +14,7 @@ #include #include #include +#include static irqreturn_t pwrkey_fall_irq(int irq, void *_pwr) { @@ -87,6 +88,11 @@ static int rk805_pwrkey_probe(struct platform_device *pdev) platform_set_drvdata(pdev, pwr); device_init_wakeup(&pdev->dev, true); + err = dev_pm_set_wake_irq(&pdev->dev, fall_irq); + if (err) + dev_warn(&pdev->dev, "Can't set wake IRQ %d: %d\n", + fall_irq, err); + return 0; } -- 2.54.0