pinctrl: mediatek: mt8195: Add pm_ops
authorZhiyong Tao <zhiyong.tao@mediatek.com>
Sat, 11 Sep 2021 07:10:46 +0000 (15:10 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Sep 2021 22:32:24 +0000 (00:32 +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.

Fixes: 6cf5e9ef362af824de2e4e8afb78d74537f1e3db ("pinctrl: add pinctrl driver on mt8195")
Signed-off-by: Zhiyong Tao <zhiyong.tao@mediatek.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20210911071046.17349-2-zhiyong.tao@mediatek.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt8195.c

index a7500e1..892e797 100644 (file)
@@ -839,6 +839,7 @@ static struct platform_driver mt8195_pinctrl_driver = {
        .driver = {
                .name = "mt8195-pinctrl",
                .of_match_table = mt8195_pinctrl_of_match,
+               .pm = &mtk_paris_pinctrl_pm_ops,
        },
        .probe = mt8195_pinctrl_probe,
 };