video/exynos: dp: Disable/enable irqs on suspend
authorSean Paul <seanpaul@chromium.org>
Tue, 7 Aug 2012 20:51:20 +0000 (13:51 -0700)
committerGerrit <chrome-bot@google.com>
Tue, 7 Aug 2012 22:21:02 +0000 (15:21 -0700)
Disable the irq on suspend, and enable it on resume to avoid handling
interrupts before the driver is ready.

BUG=chrome-os-partner:12359
TEST=Tested on snow, multiple suspend/resume cycles were Ok

Change-Id: Ibc6618ff5e7939df02f89713f6b771c08c9fa287
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/29442
Reviewed-by: Olof Johansson <olofj@chromium.org>
drivers/video/exynos/exynos_dp_core.c

index 2c87bea..b41b1ca 100644 (file)
@@ -1098,6 +1098,8 @@ static int exynos_dp_suspend(struct device *dev)
        struct exynos_dp_platdata *pdata = pdev->dev.platform_data;
        struct exynos_dp_device *dp = platform_get_drvdata(pdev);
 
+       disable_irq(dp->irq);
+
        if (work_pending(&dp->hotplug_work))
                flush_work_sync(&dp->hotplug_work);
 
@@ -1122,6 +1124,8 @@ static int exynos_dp_resume(struct device *dev)
 
        exynos_dp_init_dp(dp);
 
+       enable_irq(dp->irq);
+
        return 0;
 }
 #endif