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

Commit 79ca7ec3 authored by Robert Marklund's avatar Robert Marklund Committed by Vinod Koul
Browse files

dmaengine/ste_dma40: make the cyclic alloc NOWAIT



This function may be initiated from IRQ context, so the allocation
must allocate NOWAIT memory.

Signed-off-by: default avatarRobert Marklund <robert.marklund@stericsson.com>
Reviewed-by: default avatarRabin Vincent <rabin.vincent@stericsson.com>
Reviewed-by: default avatarPhilippe Langlais <philippe.langlais@stericsson.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent ae752bf4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2112,7 +2112,7 @@ dma40_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t dma_addr,
	struct scatterlist *sg;
	int i;

	sg = kcalloc(periods + 1, sizeof(struct scatterlist), GFP_KERNEL);
	sg = kcalloc(periods + 1, sizeof(struct scatterlist), GFP_NOWAIT);
	for (i = 0; i < periods; i++) {
		sg_dma_address(&sg[i]) = dma_addr;
		sg_dma_len(&sg[i]) = period_len;