diff mbox series

[4/4] dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations

Message ID 20180830132213.5958-5-l.stach@pengutronix.de (mailing list archive)
State Changes Requested
Headers show
Series imx-sdma fixes for 4.19-rc | expand

Commit Message

Lucas Stach Aug. 30, 2018, 1:22 p.m. UTC
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>
---
 drivers/dma/imx-sdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index a3ac216ede37..2f2e5aff1fdf 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -1210,7 +1210,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;