]> git.baikalelectronics.ru Git - kernel.git/commit
Input: applespi - fix occasional crc errors under load.
authorRonald Tschalär <ronald@innovation.ch>
Fri, 19 Feb 2021 19:12:00 +0000 (11:12 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 19 Feb 2021 19:13:29 +0000 (11:13 -0800)
commitf6644373278772cf5e948373c473136096ae69c2
tree009082c54387bb3f912593a5e6a4ea26fca75b8c
parent9d1938876860720b710f445a1c7053d0f6c9cec2
Input: applespi - fix occasional crc errors under load.

For some reason, when the system is under heavy CPU load, the read
following the write sometimes occurs unusually quickly, resulting in
the read data not being quite ready and hence a bad packet getting read.
Adding another delay after reading the status message appears to fix
this.

Signed-off-by: Ronald Tschalär <ronald@innovation.ch>
Link: https://lore.kernel.org/r/20210217190718.11035-2-ronald@innovation.ch
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/applespi.c