Skip to content

Commit 32f2ce0

Browse files
geertugregkh
authored andcommitted
serial: sh-sci: Stop acknowledging DMA transmit completions
As dmaengine_prep_slave_sg() is called with the DMA_CTRL_ACK flag set for DMA transmit requests, there's no need to explicitly acknowledge DMA transmit requests in the DMA transmit completion callback. Hence remove the call to async_tx_ack(), and remove the now unused dma_async_tx_descriptor pointer in the sci_port structure. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 565dd11 commit 32f2ce0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/tty/serial/sh-sci.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ struct sci_port {
104104
struct dma_chan *chan_rx;
105105

106106
#ifdef CONFIG_SERIAL_SH_SCI_DMA
107-
struct dma_async_tx_descriptor *desc_tx;
108107
struct dma_async_tx_descriptor *desc_rx[2];
109108
dma_cookie_t cookie_tx;
110109
dma_cookie_t cookie_rx[2];
@@ -1285,9 +1284,6 @@ static void sci_dma_tx_complete(void *arg)
12851284

12861285
port->icount.tx += s->tx_dma_len;
12871286

1288-
async_tx_ack(s->desc_tx);
1289-
s->desc_tx = NULL;
1290-
12911287
if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
12921288
uart_write_wakeup(port);
12931289

@@ -1528,7 +1524,6 @@ static void work_fn_tx(struct work_struct *work)
15281524
DMA_TO_DEVICE);
15291525

15301526
spin_lock_irq(&port->lock);
1531-
s->desc_tx = desc;
15321527
desc->callback = sci_dma_tx_complete;
15331528
desc->callback_param = s;
15341529
spin_unlock_irq(&port->lock);

0 commit comments

Comments
 (0)