]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
input: touch: raydium: wait in suspend if driver is resuming
authorDarren Sun <darrens@nvidia.com>
Tue, 20 Jun 2017 09:18:42 +0000 (17:18 +0800)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 22 Jun 2017 14:47:00 +0000 (07:47 -0700)
commitcf754ad581074f737ba80004dc3a5b3b8471ae96
tree9ce4f9b03106ce1b4bc3fe35eb504c559566ec35
parent8bde6dd5bb5f923aea9a3d9dbe6dec1cb8aeb0ac
input: touch: raydium: wait in suspend if driver is resuming

If we press power button to enable/disable touch
within a short period, the driver will send
suspend command via spi when the resume step is
still processing. This will lead to a crash.

Add a check before we do suspend process and
set the timeout to 1 second.

Bug 200317440

Change-Id: Id72045856793f726ac5a6c644945dc7325097c8b
Signed-off-by: Darren Sun <darrens@nvidia.com>
(cherry picked from commit 0550360fcf3c352516e5f99912e4190c768e8e5b)
Reviewed-on: http://git-master/r/1506233
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
drivers/input/touchscreen/rm31080a_ts.c