From: Lokesh Vutla Date: Tue, 1 Oct 2019 05:11:01 +0000 (+0530) Subject: arm: dra7xx: Hang on any failure during IOdelay recalibration X-Git-Tag: v2020.01-rc1~29^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5c6e497eaaf2c76344f82e823c2a0aad3cc26167;p=oweals%2Fu-boot.git 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 --- diff --git a/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c b/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c index 9bd7051786..9eda57c450 100644 --- a/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c +++ b/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c @@ -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; }