pinctrl: mediatek: mt8183: Add pm_ops
authorNicolas Boichat <drinkcat@chromium.org>
Wed, 8 May 2019 07:33:31 +0000 (15:33 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 1 Jun 2019 17:40:38 +0000 (19:40 +0200)
Setting this up will configure wake from suspend properly,
and wake only for the interrupts that are setup in wake_mask,
not all interrupts.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Acked-by: Sean Wang <sean.wang@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt8183.c

index 2c7409e..9a74d50 100644 (file)
@@ -583,6 +583,7 @@ static struct platform_driver mt8183_pinctrl_driver = {
        .driver = {
                .name = "mt8183-pinctrl",
                .of_match_table = mt8183_pinctrl_of_match,
+               .pm = &mtk_paris_pinctrl_pm_ops,
        },
        .probe = mt8183_pinctrl_probe,
 };