提交 7f4d3c04 编写于 作者: T Tom Rini

Merge branch 'master' of git://git.denx.de/u-boot-sh

- SH serial bugfix
......@@ -116,7 +116,10 @@ static int serial_getc_check(struct uart_port *port)
handle_error(port);
if (sci_in(port, SCLSR) & SCxSR_ORER(port))
handle_error(port);
return status & (SCIF_DR | SCxSR_RDxF(port));
status &= (SCIF_DR | SCxSR_RDxF(port));
if (status)
return status;
return scif_rxfill(port);
}
static int sh_serial_getc_generic(struct uart_port *port)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册