Input: atmel_mxt_ts - wait for CHG assert in mxt_check_bootloader
authorBenson Leung <bleung@chromium.org>
Mon, 19 May 2014 06:02:52 +0000 (23:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 19 May 2014 06:27:24 +0000 (23:27 -0700)
commitd79e7e47a9442abfcc252c8363521fe84c6b5783
treef7b78e6367482baff48077ecbf4916ce6020649a
parent82c2c0d6296526c27379f47194caf26e543b766f
Input: atmel_mxt_ts - wait for CHG assert in mxt_check_bootloader

The driver should not immediately read bootloader status when in
Application Update Mode. The CHG line will assert when the device has made
a state transition and is ready to report a new status via i2c.

This change adds a wait for completion in mxt_check_bootloader, and changes
the mxt_interrupt handler to signal the completion.

Signed-off-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
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