]> 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)
commitc7ac44827bbaf50960479b0e13d202b0f4fb7b5a
treec625d942dc85eb4301221703a5f8cf7de827c32e
parent449d2f3da543290b96c078518f2b70c1cc41f948
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