]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_mxt_ts - use deep sleep mode when stopped
authorNick Dyer <nick.dyer@itdev.co.uk>
Mon, 28 Jul 2014 17:14:34 +0000 (10:14 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 28 Jul 2014 17:26:29 +0000 (10:26 -0700)
commitf8b8a4afe231181b5dfae69300ffe43634666746
tree347632dc1343950e8ad504d42fb03c164df3ff6c
parent4f8bb7ceccc241b1e856a3dfdf4d8829e764075c
Input: atmel_mxt_ts - use deep sleep mode when stopped

By writing zero to both the active and idle cycle times the maXTouch device
is put into a deep sleep mode when it consumes minimal power. It is
unnecessary to change the configuration of any other objects (for example
to disable T9 touchscreen).

It is counterproductive to reset the chip on resume, it will result in a
long delay. However it is necessary to issue a calibrate command after the
chip has spent any time in deep sleep.

This patch also deals with the situation where the power configuration is
zero on probe, which would mean that the device never wakes up to execute
commands.

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Acked-by: Benson Leung <bleung@chromium.org>
Acked-by: Yufeng Shen <miletus@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c