From c837085d9e5a6e57eeec554921a662764381efda Mon Sep 17 00:00:00 2001 From: VNSL Durga Date: Tue, 15 Sep 2015 16:52:15 +0530 Subject: [PATCH] xilskey: Fixed Secure bit programming bug Modified if condition at programming the secure row of ultrascale's efuse. Signed-off-by: VNSL Durga Acked-by: Harini Katakam --- lib/sw_services/xilskey/src/xilskey_epl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sw_services/xilskey/src/xilskey_epl.c b/lib/sw_services/xilskey/src/xilskey_epl.c index f8e3f5d9..204d5bf4 100644 --- a/lib/sw_services/xilskey/src/xilskey_epl.c +++ b/lib/sw_services/xilskey/src/xilskey_epl.c @@ -1842,8 +1842,8 @@ static inline u8 XilSKey_EfusePl_ProgramBit_Ultra(u8 Row, u8 Bit, u8 Redundant, /** * If row = 10 then bits should be supported from 0 to 5 */ - if ((Row == XSK_EFUSEPL_SEC_ROW_ULTRA) &&\ - (Row > XSK_EFUSEPL_SEC_ROW_END_BIT_ULTRA) ) { + if ((Row == XSK_EFUSEPL_SEC_ROW_ULTRA) && + (Bit > XSK_EFUSEPL_SEC_ROW_END_BIT_ULTRA) ) { ErrorCode = XSK_EFUSEPL_ERROR_WRITE_BIT_OUT_OF_RANGE; return XST_FAILURE; }