Huang Shijie
eb56b7edae
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 >
2013-10-16 13:19:54 -07:00
..
2013-10-16 13:07:14 -07:00
2013-08-27 22:06:22 -07:00
2013-03-18 16:17:20 -07:00
2013-01-15 22:30:15 -08:00
2013-05-10 07:22:35 -07:00
2013-09-06 13:26:27 -07:00
2013-09-06 13:26:27 -07:00
2013-10-03 16:09:47 -07:00
2013-10-03 16:09:47 -07:00
2013-08-27 16:17:33 -07:00
2013-08-30 14:11:27 -07:00
2013-09-26 14:29:58 -07:00
2013-07-31 17:56:15 -07:00
2013-08-27 16:17:34 -07:00
2013-09-26 14:29:58 -07:00
2011-12-09 19:05:33 -08:00
2013-10-16 13:08:16 -07:00
2013-09-26 15:44:46 -07:00
2013-03-18 16:26:33 -07:00
2013-03-18 16:26:33 -07:00
2013-01-15 22:30:15 -08:00
2013-08-27 16:17:34 -07:00
2013-07-26 16:01:20 -07:00
2013-08-27 16:24:33 -07:00
2013-09-26 14:29:58 -07:00
2012-11-01 08:50:01 -07:00
2013-10-16 13:19:54 -07:00
2013-01-15 22:30:15 -08:00
2013-08-12 11:35:32 -07:00
2013-10-16 13:08:16 -07:00
2013-09-26 14:25:26 -07:00
2013-02-04 15:35:26 -08:00
2013-09-04 12:26:36 +02:00
2013-08-12 11:37:48 -07:00
2013-08-27 16:17:34 -07:00
2012-02-08 15:04:32 -08:00
2013-08-27 16:17:34 -07:00
2012-03-08 11:47:02 -08:00
2013-09-06 11:14:33 -07:00
2013-10-16 13:08:16 -07:00
2013-07-31 17:56:15 -07:00
2013-08-27 16:17:34 -07:00
2013-09-26 15:41:38 -07:00
2013-10-16 13:16:19 -07:00
2013-09-26 14:29:58 -07:00
2013-10-16 13:08:16 -07:00
2011-08-26 11:01:15 -07:00
2013-07-31 17:56:15 -07:00
2013-08-27 16:22:59 -07:00
2013-07-26 16:13:29 -07:00
2013-03-18 16:19:44 -07:00
2013-01-15 22:30:15 -08:00
2013-10-05 18:03:01 -07:00
2013-08-27 16:17:34 -07:00
2013-08-27 16:17:35 -07:00
2013-06-03 10:21:33 -07:00
2013-10-16 13:16:18 -07:00
2013-10-16 13:16:19 -07:00
2013-10-16 13:08:16 -07:00
2011-12-16 11:10:01 +11:00
2013-08-27 16:17:35 -07:00
2013-08-12 11:10:16 -07:00
2013-08-27 16:17:35 -07:00
2013-10-16 13:16:18 -07:00
2013-09-26 15:41:38 -07:00
2013-09-26 14:29:59 -07:00
2013-01-15 22:30:15 -08:00
2013-07-31 17:56:15 -07:00
2013-09-26 15:44:45 -07:00
2013-07-26 16:03:05 -07:00
2013-01-15 22:30:15 -08:00
2013-09-26 15:41:38 -07:00
2013-10-07 00:13:58 -07:00
2013-08-02 11:54:13 +08:00
2013-03-25 14:06:45 -07:00
2013-09-26 15:41:39 -07:00
2013-08-27 16:25:44 -07:00
2013-01-15 22:30:15 -08:00
2013-08-27 16:24:33 -07:00
2012-02-10 10:44:35 -08:00
2013-06-03 10:21:33 -07:00
2013-10-16 13:08:16 -07:00
2013-10-16 13:08:16 -07:00
2013-10-16 13:08:16 -07:00
2013-09-03 14:50:40 -04:00
2013-08-12 11:35:31 -07:00
2013-02-13 08:38:45 -08:00
2013-10-16 13:08:16 -07:00
2013-07-31 17:56:15 -07:00
2013-08-27 16:17:35 -07:00
2013-07-02 13:43:38 -07:00
2013-01-15 22:30:15 -08:00