]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers/spi: fsl_qspi: fix read timeout
authorThomas Schaefer <thomas.schaefer@kontron.com>
Mon, 1 Jul 2019 15:37:34 +0000 (17:37 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 18 Jul 2019 11:41:16 +0000 (17:11 +0530)
commitc6d0c5eb30b5d677a6eeca5079a4e9a27630b530
treeb0217e1dea03e24506c19bbfedd9d78dcd6c1aff
parent535b1fdb8e5e857b9d2747e5f1a1501ec85f327c
drivers/spi: fsl_qspi: fix read timeout

During QSPI reads, current is_controller_busy function sporadically
fails with -ETIMEDOUT due to fixed number of 5 test loops. Using
timer functions to wait 1000 us instead will fix this.

Signed-off-by: Thomas Schaefer <thomas.schaefer@kontron.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/fsl_qspi.c