rk29_key: call keys_isr when resume

This is patch for commit cdd3cccbd6
keyboard: If the power button is pressed in suspend state, immediately report event
This commit is contained in:
黄涛
2012-12-05 18:54:17 +08:00
parent ef2086a0a8
commit f38c30bd69

View File

@@ -514,6 +514,10 @@ static int keys_resume(struct device *dev)
disable_irq_wake(irq);
}
}
preempt_disable();
if (local_softirq_pending())
do_softirq(); // for call resend_irqs, which may call keys_isr
preempt_enable_no_resched();
}
ddata->in_suspend = false;