]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commite64123949e6c9581c97fc14594f1cf34bf1d87a8
tree009082c54387bb3f912593a5e6a4ea26fca75b8c
parent0ce1ac23149c6da939a5926c098c270c58c317a0
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