summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/m32r_sio_reg.h
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2013-10-11 14:30:59 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-17 00:19:54 +0400
commit1ce43e58d4d57acc9782d97270ec70a91a177abc (patch)
tree58472f9fce99b1e056e0e49edfa5e13df86c449c /drivers/tty/serial/m32r_sio_reg.h
parenteb56b7edae6ba2bfd3a07e59ea82195e2c1c28ec (diff)
downloadlinux-1ce43e58d4d57acc9782d97270ec70a91a177abc.tar.xz
serial: imx: check the DMA for imx_tx_empty
Assume the following situation: If the DMA is enabled, and the a TX DMA operation is working, But we have not issued the TX DMA operation (or we have issued the TX DMA operation with dma_async_issue_pending(), but the DMA has not started to move the data from the memory to the TXFIFO). At this time, we may get the wrong status of the transmitter when we call the imx_tx_empty. In such situation, only check the USR2_TXDC does not enough for us. This patch checks the DMA's situation, and return 0 when the TX DMA is working. Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/m32r_sio_reg.h')
0 files changed, 0 insertions, 0 deletions