diff options
author | Huang Shijie <b32955@freescale.com> | 2013-10-11 14:30:58 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-17 00:19:54 +0400 |
commit | eb56b7edae6ba2bfd3a07e59ea82195e2c1c28ec (patch) | |
tree | 5fdaab8e8a4e33e2f4b63f6d82629e02a6a0a163 /drivers/nfc | |
parent | fa2b5ea09e48186041f68649ab8192447b31bffc (diff) | |
download | linux-eb56b7edae6ba2bfd3a07e59ea82195e2c1c28ec.tar.xz |
serial: imx: implement the flush_buffer hook
The current driver does not implement the flush_buffer hook for
uart_ops. When we enable the DMA for the driver, and test it with Bluetooth,
we may meet the following bug for TX:
[1] User application may call the flush operation at any time.
The uart_flush_buffer() calls the uart_circ_clear() to set
the xmit->head and xmit->tail with 0.
[2] The TX DMA callback can be called at any time too.
The dma_tx_call() will update the xmit->tail.
If [2] occurs just after the [1], we will get the wrong xmit->tail.
This patch implements the flush_buffer hook to fix this issue.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nfc')
0 files changed, 0 insertions, 0 deletions