提交 f543650a 编写于 作者: P Phil Elwell 提交者: Zheng Zengkai

sc16is7xx: Don't spin if no data received

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

See: https://github.com/raspberrypi/linux/issues/2676Signed-off-by: NPhil Elwell <phil@raspberrypi.org>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 19d0bbdc
...@@ -696,6 +696,8 @@ static bool sc16is7xx_port_irq(struct sc16is7xx_port *s, int portno) ...@@ -696,6 +696,8 @@ static bool sc16is7xx_port_irq(struct sc16is7xx_port *s, int portno)
rxlen = sc16is7xx_port_read(port, SC16IS7XX_RXLVL_REG); rxlen = sc16is7xx_port_read(port, SC16IS7XX_RXLVL_REG);
if (rxlen) if (rxlen)
sc16is7xx_handle_rx(port, rxlen, iir); sc16is7xx_handle_rx(port, rxlen, iir);
else
return false;
break; break;
case SC16IS7XX_IIR_THRI_SRC: case SC16IS7XX_IIR_THRI_SRC:
sc16is7xx_handle_tx(port); sc16is7xx_handle_tx(port);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册