From 548a7dcc242452d447634beef792447515c324f8 Mon Sep 17 00:00:00 2001 From: Igor Opaniuk Date: Wed, 17 Jun 2020 01:41:28 +0300 Subject: imx8: fuse_prog: drop additional confirmation for ECC fuses This will to automate programming ECC fuses using only "-y" for a full confirmation when invoking "fuse prog" command. Relates-to: ELB-2764 Signed-off-by: Igor Opaniuk --- arch/arm/mach-imx/imx8/fuse.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/arm/mach-imx/imx8/fuse.c b/arch/arm/mach-imx/imx8/fuse.c index 104833ca70..4603b91a41 100644 --- a/arch/arm/mach-imx/imx8/fuse.c +++ b/arch/arm/mach-imx/imx8/fuse.c @@ -83,17 +83,9 @@ int fuse_prog(u32 bank, u32 word, u32 val) if (((word >= FSL_ECC_WORD_START_1) && (word <= FSL_ECC_WORD_END_1)) || ((word >= FSL_ECC_WORD_START_2) && (word <= FSL_ECC_WORD_END_2))) - { puts("Warning: Words in this index range have ECC protection and\n" "can only be programmed once per word. Individual bit operations will\n" - "be rejected after the first one. \n" - "\n\n Really program this word? \n"); - - if(!confirm_yesno()) { - puts("Word programming aborted\n"); - return -EPERM; - } - } + "be rejected after the first one. \n"); #if defined(CONFIG_SMC_FUSE) return call_imx_sip(FSL_SIP_OTP_WRITE, (unsigned long)word,\ -- cgit v1.2.3