Skip to content
Commit 997f6c17 authored by Michael Lawnick's avatar Michael Lawnick Committed by Ruiqiang Hao
Browse files

drivers: octeontx2: memtest: Retry on failing SPI lock



commit f3b5f7a7f9ec210cb4e00f17b56a142553c2b923 from
git@git.assembla.com:cavium/WindRiver.linux.git

Due to concurrent access to SPI bus it may happen that SMC call
fails. Handle this case and retry up to 50 times with a short delay.

In local test it happened once in 1000 boots that 37 retries where
needed, so use 50 as a maximum.

Change-Id: I036265bd7a8b16ba1092445cdc96a9e43157ae15
Signed-off-by: default avatarMichael Lawnick <michael.lawnick@nokia.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/108590
Tested-by: default avatarsa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com>
Reviewed-by: default avatarChandrakala Chavva <cchavva@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/120336
Reviewed-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent 6af5d2f3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment