From: Dmitry Torokhov Date: Fri, 1 Sep 2017 01:23:11 +0000 (-0700) Subject: Input: ucb1400_ts - fix suspend and resume handling X-Git-Tag: v4.14-rc1~4^2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39467fc1054a91efa697162a94e5b0e1a4b7b580;p=platform%2Fkernel%2Flinux-rpi3.git Input: ucb1400_ts - fix suspend and resume handling Instead of stopping the touchscreen we were starting it in suspend, and disabling it in resume. Fixes: c899afedf168 ("Input: ucb1400_ts - convert to threaded IRQ") Reported-by: Anton Volkov Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c index c1e23cf..1a86cbd 100644 --- a/drivers/input/touchscreen/ucb1400_ts.c +++ b/drivers/input/touchscreen/ucb1400_ts.c @@ -414,7 +414,7 @@ static int __maybe_unused ucb1400_ts_suspend(struct device *dev) mutex_lock(&idev->mutex); if (idev->users) - ucb1400_ts_start(ucb); + ucb1400_ts_stop(ucb); mutex_unlock(&idev->mutex); return 0; @@ -428,7 +428,7 @@ static int __maybe_unused ucb1400_ts_resume(struct device *dev) mutex_lock(&idev->mutex); if (idev->users) - ucb1400_ts_stop(ucb); + ucb1400_ts_start(ucb); mutex_unlock(&idev->mutex); return 0;