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 <qiufang.dai@amlogic.com>
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;