From: Lucas Stach Date: Tue, 6 Nov 2018 03:40:37 +0000 (+0000) Subject: dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=64068853bc77786d1a28abb4087d6a3e93aedbe2;p=openwrt%2Fstaging%2Fblogic.git dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations DMA buffer descriptors aren't allocated from atomic context, so they can use the less heavyweigth GFP_NOWAIT. Signed-off-by: Lucas Stach Signed-off-by: Robin Gong Cc: stable Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 03d46f1b0826..cb1b44d78a1f 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -1214,7 +1214,7 @@ static int sdma_alloc_bd(struct sdma_desc *desc) int ret = 0; desc->bd = dma_zalloc_coherent(NULL, bd_size, &desc->bd_phys, - GFP_ATOMIC); + GFP_NOWAIT); if (!desc->bd) { ret = -ENOMEM; goto out;