dp: tx: Qualify interrupt status with interrupt mask.

The status and mask registers are independent - the interrupt status
is not affected by the software controlled interrupt mask register.

For the contents of the interrupt mask to take effect, qualification
of the interrupt status needs to happen in software.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
This commit is contained in:
Andrei-Liviu Simion 2015-10-09 03:51:34 -07:00 committed by Nava kishore Manne
parent 9a7cc7936e
commit a6beedde4c

View file

@ -989,6 +989,8 @@ static void XDp_TxInterruptHandler(XDp *InstancePtr)
* Note: XDP_TX_INTERRUPT_STATUS is an RC (read-clear) register. */
IntrStatus = XDp_ReadReg(InstancePtr->Config.BaseAddr,
XDP_TX_INTERRUPT_STATUS);
IntrStatus &= ~XDp_ReadReg(InstancePtr->Config.BaseAddr,
XDP_TX_INTERRUPT_MASK);
HpdEventDetected = IntrStatus & XDP_TX_INTERRUPT_STATUS_HPD_EVENT_MASK;
HpdPulseDetected = IntrStatus &