提交 d2fcd62a 编写于 作者: H hongkun.cao 提交者: Linus Walleij

pinctrl: mediatek: fix suspend/resume timing issue

An irq which is a wake up source maybe masked unexpectedly if the wake
up source irq was triggered after pinctrl irqchip suspend and before
suspend_device_irqs finished.
Use *_noirq callbacks to guarantee pinctrl irqchip suspend would be
called after suspend_devices_irqs.
Signed-off-by: Nhongkun.cao <hongkun.cao@mediatek.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 4d6ddd3b
...@@ -1183,8 +1183,8 @@ static int mtk_eint_resume(struct device *device) ...@@ -1183,8 +1183,8 @@ static int mtk_eint_resume(struct device *device)
} }
const struct dev_pm_ops mtk_eint_pm_ops = { const struct dev_pm_ops mtk_eint_pm_ops = {
.suspend = mtk_eint_suspend, .suspend_noirq = mtk_eint_suspend,
.resume = mtk_eint_resume, .resume_noirq = mtk_eint_resume,
}; };
static void mtk_eint_ack(struct irq_data *d) static void mtk_eint_ack(struct irq_data *d)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册