From: Qiufang Dai Date: Tue, 24 Sep 2019 13:59:47 +0000 (+0800) Subject: freeze: add IRQF_NO_SUSPEND for ir irq flag for avoid wakeup by any IR key X-Git-Tag: hardkernel-4.9.236-104~619 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbe1f0fa30dac61351477c79daf6d53a65e08e90;p=platform%2Fkernel%2Flinux-amlogic.git freeze: add IRQF_NO_SUSPEND for ir irq flag for avoid wakeup by any IR key PD#TV-10438 Problem: system can be wake up by any IR key Solution: Add IRQF_NO_SUSPEND to avoid IR interrupt being seen as wakeup source IRQ When IR irq check current key is power key, then send pm_wakeup_event() Verify: X32A0-T972 Change-Id: I753fe15f859480954bb569f2da3d3e0dd93c29e3 Signed-off-by: Qiufang Dai --- diff --git a/drivers/amlogic/input/remote/remote_meson.c b/drivers/amlogic/input/remote/remote_meson.c index cf5900d..9cc0492 100644 --- a/drivers/amlogic/input/remote/remote_meson.c +++ b/drivers/amlogic/input/remote/remote_meson.c @@ -764,8 +764,8 @@ static int ir_hardware_init(struct platform_device *pdev) if (ret < 0) return ret; chip->set_register_config(chip, chip->protocol); - ret = request_irq(chip->irqno, ir_interrupt, IRQF_SHARED, - "keypad", (void *)chip); + ret = request_irq(chip->irqno, ir_interrupt, IRQF_SHARED + | IRQF_NO_SUSPEND, "keypad", (void *)chip); if (ret < 0) goto error_irq;