projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f80f7c9
)
dmaengine: xilinx_dma: Alloc tx descriptors GFP_NOWAIT
author
Richard Fitzgerald
<rf@opensource.cirrus.com>
Fri, 29 Jan 2021 17:08:00 +0000
(17:08 +0000)
committer
Vinod Koul
<vkoul@kernel.org>
Mon, 1 Feb 2021 09:56:48 +0000
(15:26 +0530)
Use GFP_NOWAIT allocation in xilinx_dma_alloc_tx_descriptor().
This is necessary for compatibility with ALSA, which calls
dmaengine_prep_dma_cyclic() from an atomic context.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link:
https://lore.kernel.org/r/20210129170800.31857-1-rf@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/xilinx/xilinx_dma.c
b/drivers/dma/xilinx/xilinx_dma.c
index
22faea6
..
fb046af
100644
(file)
--- a/
drivers/dma/xilinx/xilinx_dma.c
+++ b/
drivers/dma/xilinx/xilinx_dma.c
@@
-800,7
+800,7
@@
xilinx_dma_alloc_tx_descriptor(struct xilinx_dma_chan *chan)
{
struct xilinx_dma_tx_descriptor *desc;
- desc = kzalloc(sizeof(*desc), GFP_
KERNEL
);
+ desc = kzalloc(sizeof(*desc), GFP_
NOWAIT
);
if (!desc)
return NULL;