Wind River Support Network

HomeDefectsLIN8-6793
Fixed

LIN8-6793 : Timeout bug in kernel SPI driver (spi-pl022.c)

Created: May 30, 2017    Updated: Dec 3, 2018
Resolved Date: Jun 15, 2017
Found In Version: 8.0.0.17
Fix Version: 8.0.0.19
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: BSP

Description

We found a bug in Linux kernel (axxiaarm64 BSP) SPI driver (spi-pl022.c).

When running SPI in polling mode (default) the driver has a hardcoded timeout on 1 second (regardless of transfer size and frequency).
We get the following kernel error when trying to read large chunks (1MB) from a SPI NOR flash:

ssp-pl022 8080100000.ssp: do_polling_transfer: timeout!

IMHO the driver timeout should be based on transfer size and configured SPI bus clock frequency. 

Other Downloads


Live chat
Online