Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b3d7d39 authored by Vinod Koul's avatar Vinod Koul
Browse files

serial: sh: use DMA_COMPLETE for dma completion status

parent 157efa8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1433,7 +1433,7 @@ static void work_fn_rx(struct work_struct *work)
	desc = s->desc_rx[new];
	desc = s->desc_rx[new];


	if (dma_async_is_tx_complete(s->chan_rx, s->active_rx, NULL, NULL) !=
	if (dma_async_is_tx_complete(s->chan_rx, s->active_rx, NULL, NULL) !=
	    DMA_SUCCESS) {
	    DMA_COMPLETE) {
		/* Handle incomplete DMA receive */
		/* Handle incomplete DMA receive */
		struct dma_chan *chan = s->chan_rx;
		struct dma_chan *chan = s->chan_rx;
		struct shdma_desc *sh_desc = container_of(desc,
		struct shdma_desc *sh_desc = container_of(desc,