*v1.3 : 2012-12-14\r
* 1. When enable Programmable THRE Interrupt Mode, in lsr register, only UART_LSR_TEMT means transmit empty, but\r
UART_LSR_THRE doesn't. So, the macro BOTH_EMPTY should be replaced with UART_LSR_TEMT.\r
+*v1.4 : 2013-04-16\r
+* 1.fix bug dma buffer free error\r
*/\r
-#define VERSION_AND_TIME "rk_serial.c v1.3 2012-12-14"\r
+#define VERSION_AND_TIME "rk_serial.c v1.4 2013-04-16"\r
\r
#define PORT_RK 90\r
#define UART_USR 0x1F /* UART Status Register */\r
*/\r
(void) serial_in(up, UART_RX);\r
#if USE_DMA\r
- //if (up->dma->use_dma & TX_DMA)\r
- // up->port.state->xmit.buf = NULL;\r
+ if (up->dma->use_dma & TX_DMA)\r
+ up->port.state->xmit.buf = NULL;\r
#endif\r
free_irq(up->port.irq, up);\r
clk_disable(up->clk);\r