Skip to content

Commit

Permalink
dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations
Browse files Browse the repository at this point in the history
DMA buffer descriptors aren't allocated from atomic context, so they
can use the less heavyweigth GFP_NOWAIT.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Lucas Stach authored and Vinod Koul committed Dec 5, 2018
1 parent b8603d2 commit 6406885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6406885

Please sign in to comment.