debug: vuart: fix interrupt ID for data receiving
When RX FIFO is not empty and Receive Data Available interrupt is enabled, vUART should report a Receive Data Available (IIR_RXRDY) in IIR instead of a Timeout Interrupt Pending (IIR_RXTOUT). Tracked-On: #8583 Signed-off-by: Qiang Zhang <qiang4.zhang@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
c623e11125
commit
629808c767
|
@ -138,7 +138,7 @@ static uint8_t vuart_intr_reason(const struct acrn_vuart *vu)
|
|||
if (((vu->lsr & (LSR_OE | LSR_BI)) != 0U) && ((vu->ier & IER_ELSI) != 0U)) {
|
||||
ret = IIR_RLS;
|
||||
} else if ((fifo_numchars(&vu->rxfifo) > 0U) && ((vu->ier & IER_ERBFI) != 0U)) {
|
||||
ret = IIR_RXTOUT;
|
||||
ret = IIR_RXRDY;
|
||||
} else if (vu->thre_int_pending && ((vu->ier & IER_ETBEI) != 0U)) {
|
||||
ret = IIR_TXRDY;
|
||||
} else if(((vu->msr & MSR_DELTA_MASK) != 0U) && ((vu->ier & IER_EMSC) != 0U)) {
|
||||
|
|
Loading…
Reference in New Issue