File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ static void tegra_uart_tx_dma_complete(void *args)
525
525
count = tup -> tx_bytes_requested - state .residue ;
526
526
async_tx_ack (tup -> tx_dma_desc );
527
527
spin_lock_irqsave (& tup -> uport .lock , flags );
528
- xmit -> tail = ( xmit -> tail + count ) & ( UART_XMIT_SIZE - 1 );
528
+ uart_xmit_advance ( & tup -> uport , count );
529
529
tup -> tx_in_progress = 0 ;
530
530
if (uart_circ_chars_pending (xmit ) < WAKEUP_CHARS )
531
531
uart_write_wakeup (& tup -> uport );
@@ -613,7 +613,6 @@ static unsigned int tegra_uart_tx_empty(struct uart_port *u)
613
613
static void tegra_uart_stop_tx (struct uart_port * u )
614
614
{
615
615
struct tegra_uart_port * tup = to_tegra_uport (u );
616
- struct circ_buf * xmit = & tup -> uport .state -> xmit ;
617
616
struct dma_tx_state state ;
618
617
unsigned int count ;
619
618
@@ -624,7 +623,7 @@ static void tegra_uart_stop_tx(struct uart_port *u)
624
623
dmaengine_tx_status (tup -> tx_dma_chan , tup -> tx_cookie , & state );
625
624
count = tup -> tx_bytes_requested - state .residue ;
626
625
async_tx_ack (tup -> tx_dma_desc );
627
- xmit -> tail = ( xmit -> tail + count ) & ( UART_XMIT_SIZE - 1 );
626
+ uart_xmit_advance ( & tup -> uport , count );
628
627
tup -> tx_in_progress = 0 ;
629
628
}
630
629
You can’t perform that action at this time.
0 commit comments