sw_services:xilsecure: Fix for authentication failures
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 <saratcha@xilinx.com> Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
This commit is contained in:
parent
7b0809dbe4
commit
c023b29bc4
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue