openwrt/target
Hauke Mehrtens e5612d6640 lantiq: spi: double time out tolerance
The generic SPI code calculates how long the issued transfer would take
and adds 100ms in addition to the timeout as tolerance. On my 500 MHz
Lantiq Mips SoC I am getting timeouts from the SPI like this when the
system boots up:

m25p80 spi32766.4: SPI transfer timed out
blk_update_request: I/O error, dev mtdblock3, sector 2
SQUASHFS error: squashfs_read_data failed to read block 0x6e

After increasing the tolerance for the timeout to 200ms I haven't seen
these SPI transfer time outs any more.
The Lantiq SPI driver in use here has an extra work queue in between,
which gets triggered when the controller send the last word and the
hardware FIFOs used for reading and writing are only 8 words long.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 6153248052)
2017-12-13 15:35:07 +01:00
..
imagebuilder imagebuilder: make submake invocations less verbose 2017-12-13 14:17:32 +01:00
linux lantiq: spi: double time out tolerance 2017-12-13 15:35:07 +01:00
sdk sdk: emit proper tag references for base URLs 2017-02-19 20:50:24 +01:00
toolchain target/toolchain: Fix toolchain packaging without package build 2016-09-06 11:40:12 +02:00
Config.in kernel: allow selecting RTC drivers on targets without explicit RTC support 2017-12-13 15:20:38 +01:00
Makefile sdk: depend on linux/install 2016-11-04 16:14:51 +01:00