diff options
| author | Guillaume Ranquet <granquet@baylibre.com> | 2021-05-13 21:26:42 +0200 |
|---|---|---|
| committer | Sasha Levin <sashal@kernel.org> | 2021-06-30 08:47:46 -0400 |
| commit | e0c950d2fddbd95d69774cffa7f77c2369bbf966 (patch) | |
| tree | 489d435db5b4726e274a7eac437759f51d1cccc5 /drivers/dma | |
| parent | f7b1926c7c5d98c035162c54b9613e547f50c240 (diff) | |
| download | linux-e0c950d2fddbd95d69774cffa7f77c2369bbf966.tar.gz linux-e0c950d2fddbd95d69774cffa7f77c2369bbf966.tar.bz2 linux-e0c950d2fddbd95d69774cffa7f77c2369bbf966.zip | |
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: Guillaume Ranquet <granquet@baylibre.com>
Link: https://lore.kernel.org/r/20210513192642.29446-4-granquet@baylibre.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/dma')
| -rw-r--r-- | drivers/dma/mediatek/mtk-uart-apdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mediatek/mtk-uart-apdma.c b/drivers/dma/mediatek/mtk-uart-apdma.c index e420e9f72b3d..9c0ea13ca788 100644 --- a/drivers/dma/mediatek/mtk-uart-apdma.c +++ b/drivers/dma/mediatek/mtk-uart-apdma.c @@ -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; |
