Commit 90415753 authored by Guillaume Ranquet's avatar Guillaume Ranquet Committed by Vinod Koul

dmaengine: mediatek: use GFP_NOWAIT instead of GFP_ATOMIC in prep_dma

As recommended by the doc in:
Documentation/drivers-api/dmaengine/provider.rst

Use GFP_NOWAIT to not deplete the emergency pool.
Signed-off-by: default avatarGuillaume Ranquet <granquet@baylibre.com>

Link: https://lore.kernel.org/r/20210513192642.29446-4-granquet@baylibre.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 2537b40b
......@@ -349,7 +349,7 @@ static struct dma_async_tx_descriptor *mtk_uart_apdma_prep_slave_sg
return NULL;
/* Now allocate and setup the descriptor */
d = kzalloc(sizeof(*d), GFP_ATOMIC);
d = kzalloc(sizeof(*d), GFP_NOWAIT);
if (!d)
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment