hdcp1x: cipher: Fixed disable function for unplug scenario.

During an unplug event, the clock may not be stable which will
cause the disable function to stall.

Removing the wait for the encryption function to finish after the
cipher has been disabled will not affect functionality.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked by: Rohit Consul <rohitco@xilinx.com>
This commit is contained in:
Andrei-Liviu Simion 2015-08-11 19:05:00 -07:00 committed by Nava kishore Manne
parent ea3f5c9215
commit 4b989a1221

View file

@ -268,9 +268,6 @@ int XHdcp1x_CipherDisable(XHdcp1x *InstancePtr)
XHdcp1x_WriteReg(InstancePtr->Config.BaseAddress,
XHDCP1X_CIPHER_REG_CONTROL, Value);
/* Wait until the XOR has actually stopped */
while (XHdcp1x_CipherXorInProgress(InstancePtr));
return (XST_SUCCESS);
}
@ -692,11 +689,6 @@ int XHdcp1x_CipherDisableEncryption(XHdcp1x *InstancePtr, u64 StreamMap)
XHdcp1x_WriteReg(InstancePtr->Config.BaseAddress,
XHDCP1X_CIPHER_REG_CONTROL, Val);
/* If disabling the XOR, wait until no longer in progress */
if (DisableXor) {
while (XHdcp1x_CipherXorInProgress(InstancePtr));
}
return (XST_SUCCESS);
}