OSDN Git Service

Input: edt-ft5x06 - make wakeup-source switchable
authorMarco Felsch <m.felsch@pengutronix.de>
Fri, 10 Jan 2020 01:04:36 +0000 (17:04 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 10 Jan 2020 22:45:35 +0000 (14:45 -0800)
commit53435cd88e6ac0491ddbfa03111667229f7b8693
tree08c94be1934319a146c35bcbf3d216788ecb9dc8
parent21cdb025fc6930f240af48a491e8c763be7900f2
Input: edt-ft5x06 - make wakeup-source switchable

Since day one the touch controller acts as wakeup-source. This seems to
be wrong since the device supports deep-sleep mechanism [1] which
requires a reset to leave it. Also some designs won't use the
touchscreen as wakeup-source.

According discussion [2] we decided to break backward compatibility and
go the common way by using the 'wakeup-source' device-property.

[1] https://www.newhavendisplay.com/appnotes/datasheets/touchpanel/FT5x26.pdf
[2] https://patchwork.kernel.org/patch/11149037/

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/edt-ft5x06.c