提交 dfe844c9 编写于 作者: A Anthony Liguori

serial: clear LSR.TEMT when populating the TSR

We never actually clear the TEMT (transmit sending register empty) flag when
populating the TSR.  We set the flag, but since it's never cleared, setting it
is sort of pointless..

I found this with a unit test case.
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 67c5322d
...@@ -332,6 +332,7 @@ static void serial_xmit(void *opaque) ...@@ -332,6 +332,7 @@ static void serial_xmit(void *opaque)
} else { } else {
s->tsr = s->thr; s->tsr = s->thr;
s->lsr |= UART_LSR_THRE; s->lsr |= UART_LSR_THRE;
s->lsr &= ~UART_LSR_TEMT;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册