mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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>
This commit is contained in:
parent
0ce1ac2314
commit
e64123949e
1 changed files with 2 additions and 0 deletions
|
@ -749,6 +749,8 @@ static void applespi_async_write_complete(void *context)
|
||||||
applespi->tx_status,
|
applespi->tx_status,
|
||||||
APPLESPI_STATUS_SIZE);
|
APPLESPI_STATUS_SIZE);
|
||||||
|
|
||||||
|
udelay(SPI_RW_CHG_DELAY_US);
|
||||||
|
|
||||||
if (!applespi_check_write_status(applespi, applespi->wr_m.status)) {
|
if (!applespi_check_write_status(applespi, applespi->wr_m.status)) {
|
||||||
/*
|
/*
|
||||||
* If we got an error, we presumably won't get the expected
|
* If we got an error, we presumably won't get the expected
|
||||||
|
|
Loading…
Reference in a new issue