|
@@ -328,7 +328,7 @@ static void lpuart_dma_tx(struct lpuart_port *sport)
|
|
|
|
|
|
sport->dma_tx_bytes = uart_circ_chars_pending(xmit);
|
|
|
|
|
|
- if (xmit->tail < xmit->head) {
|
|
|
+ if (xmit->tail < xmit->head || xmit->head == 0) {
|
|
|
sport->dma_tx_nents = 1;
|
|
|
sg_init_one(sgl, xmit->buf + xmit->tail, sport->dma_tx_bytes);
|
|
|
} else {
|
|
@@ -359,7 +359,6 @@ static void lpuart_dma_tx(struct lpuart_port *sport)
|
|
|
sport->dma_tx_in_progress = true;
|
|
|
sport->dma_tx_cookie = dmaengine_submit(sport->dma_tx_desc);
|
|
|
dma_async_issue_pending(sport->dma_tx_chan);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
static void lpuart_dma_tx_complete(void *arg)
|