input: touchscreen: edt-ft5x06: Suppress bogus data on startup
authorNick Hollinghurst <nick.hollinghurst@raspberrypi.com>
Wed, 11 Oct 2023 14:14:59 +0000 (15:14 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:06 +0000 (11:35 +0000)
commit968fa77d26ced0af6380d6c2970a175012ff6bae
tree306491be127a99660361fa58b80d71e035230e83
parent274102ecfd816f0f734aa38a2c088173c3620b62
input: touchscreen: edt-ft5x06: Suppress bogus data on startup

When polled without the use of IRQ, FT5x06 registers may return
undefined initial data, causing unwanted touches or event spamming.
A simple way to filter this out is to suppress touches until the
TD_STATUS register changes for the first time.

Increase the delay before first polling to 300ms, to avoid
transient I2C read flakiness that seems to occur after reset.

Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
drivers/input/touchscreen/edt-ft5x06.c