Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0c950d2 authored by Guillaume Ranquet's avatar Guillaume Ranquet Committed by Sasha Levin
Browse files

dmaengine: mediatek: use GFP_NOWAIT instead of GFP_ATOMIC in prep_dma



[ Upstream commit 9041575348b21ade1fb74d790f1aac85d68198c7 ]

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.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f7b1926c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;