projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2537b40
)
dmaengine: mediatek: use GFP_NOWAIT instead of GFP_ATOMIC in prep_dma
author
Guillaume Ranquet
<granquet@baylibre.com>
Thu, 13 May 2021 19:26:42 +0000
(21:26 +0200)
committer
Vinod Koul
<vkoul@kernel.org>
Mon, 7 Jun 2021 06:53:47 +0000
(12:23 +0530)
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>
drivers/dma/mediatek/mtk-uart-apdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/mediatek/mtk-uart-apdma.c
b/drivers/dma/mediatek/mtk-uart-apdma.c
index a09ab2dd3b4642b8d14d607185bcf7aa8f278614..375e7e647df6b5093b156c2cd88e7f7f0e6798d3 100644
(file)
--- 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;