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>
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);
exynos_dp_init_dp(dp);
+ enable_irq(dp->irq);
+
return 0;
}
#endif