staging: nvec: make touchpad init synchronous
authorMarc Dietrich <marvin24@gmx.de>
Sat, 6 Apr 2024 12:31:21 +0000 (14:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2024 11:59:19 +0000 (13:59 +0200)
commit395e9164bf721aff9bbbf8d6ac4f6c988d25980c
tree72670a6839d53c8fcd66bc139d745997b97cd202
parent41288dfaf1b8231bc21fd6966e7296b087e75969
staging: nvec: make touchpad init synchronous

Currently, we are constantly sending commands to the EC without waiting for them to be
executed. For the touchpad initialization this only worked because we were waiting 200 µs
between each submitted command byte, so the EC had enough time to execute. In the furture
we like to avoid this delay, so we need to wait for each command to be executed first.
Do this by switching from asynchronous to synchronous command transmission.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Link: https://lore.kernel.org/r/20240406123123.37148-4-marvin24@gmx.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec_ps2.c