]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
gpio: tegra: add early_resume support
authorSuresh Mangipudi <smangipudi@nvidia.com>
Tue, 16 May 2017 10:30:37 +0000 (16:00 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 25 May 2017 10:45:02 +0000 (03:45 -0700)
GPIO resume needs to happen early in the resume process
to ensure proper functioning of the peripheral drivers.

This change moves the GPIO resume to early_resume.

Bug 200298115

Change-Id: Ifda130b2c031dfc605dd7c0a297f5389dc8f4b23
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/1482938
(cherry picked from commit fe8ced21e938523484fffc5890478f7994a73628)
Reviewed-on: http://git-master/r/1487957
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/gpio/gpio-tegra.c

index ebe001d8e91b02e1bfca135fefaec443852b9c62..2de9e95b50b4fe399072f4e6d5899946c2dfae1f 100644 (file)
@@ -501,7 +501,7 @@ static int tegra_gpio_irq_set_wake(struct irq_data *d, unsigned int enable)
 
 static struct syscore_ops tegra_gpio_syscore_ops = {
        .suspend = tegra_gpio_suspend,
-       .resume = tegra_gpio_resume,
+       .early_resume = tegra_gpio_resume,
        .save = tegra_gpio_suspend,
        .restore = tegra_gpio_resume,
 };