From: Lucas Stach Date: Tue, 6 Nov 2018 03:40:25 +0000 (+0000) Subject: Revert "dmaengine: imx-sdma: Use GFP_NOWAIT for dma allocations" X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c06abca69218ac42fa58d1ba7a7b0d9bab5f1b18;p=openwrt%2Fstaging%2Fblogic.git Revert "dmaengine: imx-sdma: Use GFP_NOWAIT for dma allocations" This reverts commit c1199875d327, as this depends on another commit that is going to be reverted. 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 b4ec2d20e661..3bca5e0c715f 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -1194,8 +1194,8 @@ static int sdma_alloc_bd(struct sdma_desc *desc) { int ret = 0; - desc->bd = dma_pool_alloc(desc->sdmac->bd_pool, GFP_NOWAIT, - &desc->bd_phys); + desc->bd = dma_pool_alloc(desc->sdmac->bd_pool, GFP_ATOMIC, + &desc->bd_phys); if (!desc->bd) { ret = -ENOMEM; goto out;