]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_mxt_ts - recover from bootloader on probe
authorNick Dyer <nick.dyer@itdev.co.uk>
Wed, 23 Jul 2014 19:45:49 +0000 (12:45 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 23 Jul 2014 21:42:11 +0000 (14:42 -0700)
commit174e129057c8f0f97e05d0cf68c702e431ef7648
treec625d942dc85eb4301221703a5f8cf7de827c32e
parent1c55a914e44f26e0f4f24a092b74929e1ce5ab54
Input: atmel_mxt_ts - recover from bootloader on probe

The MXT device may be in bootloader mode on probe, due to:
1) APP CRC failure, either:
  a) flash corruption
  b) bad power or other intermittent problem while checking CRC
2) If the device has been reset 10 or more times without accessing comms
3) Warm probe, device was in bootloader mode already

This code attempts to recover from 1(b) and 3.

There is an additional complexity: we have to try two possible bootloader
addresses because the mapping is not one-to-one and we don't know the exact
model yet.

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