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>