From c023b29bc48619dceff6d54c8ce65c9bb07be253 Mon Sep 17 00:00:00 2001 From: Sarat Chand Savitala Date: Thu, 15 Oct 2015 16:32:39 +0530 Subject: [PATCH] sw_services:xilsecure: Fix for authentication failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Acknowledge DMA transfer is complete by clearing DONE status. This will make sure that the next transfer doesn’t assume DONE when it isn’t. Signed-off-by: Sarat Chand Savitala Acked-by: Krishna Chaitanya Patakamuri --- lib/sw_services/xilsecure/src/xsecure_sha.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/sw_services/xilsecure/src/xsecure_sha.c b/lib/sw_services/xilsecure/src/xsecure_sha.c index 961b03dc..f3be9b73 100644 --- a/lib/sw_services/xilsecure/src/xsecure_sha.c +++ b/lib/sw_services/xilsecure/src/xsecure_sha.c @@ -185,6 +185,10 @@ void XSecure_Sha3Update(XSecure_Sha3 *InstancePtr, const u8 *Data, /* Checking the CSU DMA done bit should be enough. */ XCsuDma_WaitForDone(InstancePtr->CsuDmaPtr, XCSUDMA_SRC_CHANNEL); + + /* Acknowledge the transfer has completed */ + XCsuDma_IntrClear(InstancePtr->CsuDmaPtr, XCSUDMA_SRC_CHANNEL, + XCSUDMA_IXR_DONE_MASK); }