mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 06:04:14 +08: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
@ -749,6 +749,8 @@ static void applespi_async_write_complete(void *context)
|
||||
applespi->tx_status,
|
||||
APPLESPI_STATUS_SIZE);
|
||||
|
||||
udelay(SPI_RW_CHG_DELAY_US);
|
||||
|
||||
if (!applespi_check_write_status(applespi, applespi->wr_m.status)) {
|
||||
/*
|
||||
* If we got an error, we presumably won't get the expected
|
||||
|
Loading…
Reference in New Issue
Block a user