arm: dra7xx: Hang on any failure during IOdelay recalibration

If there is any failure during IOdelay recalibration sequence, IOs are
not guaranteed to behave as expected. So hang on any failure during the
sequence.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
Lokesh Vutla 2019-10-01 10:41:01 +05:30 committed by Tom Rini
parent 60e3d43a26
commit 5c6e497eaa

View File

@ -241,6 +241,12 @@ void __recalibrate_iodelay_end(int ret)
debug("IODELAY: IO delay recalibration successfully completed\n");
}
/* If there is an error during iodelay recalibration, SoC is in a bad
* state. Do not progress any further.
*/
if (ret)
hang();
return;
}