projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
387269d
)
dmaengine: at_xdmac: GFP_KERNEL for user that can sleep
author
Tudor Ambarus
<tudor.ambarus@microchip.com>
Thu, 23 Jan 2020 14:03:15 +0000
(14:03 +0000)
committer
Vinod Koul
<vkoul@kernel.org>
Tue, 25 Feb 2020 05:57:27 +0000
(11:27 +0530)
device_alloc_chan_resources can sleep, use GFP_KERNEL flag.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Link:
https://lore.kernel.org/r/20200123140237.125799-9-tudor.ambarus@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_xdmac.c
patch
|
blob
|
history
diff --git
a/drivers/dma/at_xdmac.c
b/drivers/dma/at_xdmac.c
index 8fb01bc90ba79f444bdec6049a2e4de0dab2628a..31321da69ae68fbe15285e9c7e9bddce6a8fd5e9 100644
(file)
--- a/
drivers/dma/at_xdmac.c
+++ b/
drivers/dma/at_xdmac.c
@@
-1834,7
+1834,7
@@
static int at_xdmac_alloc_chan_resources(struct dma_chan *chan)
}
for (i = 0; i < init_nr_desc_per_channel; i++) {
- desc = at_xdmac_alloc_desc(chan, GFP_
ATOMIC
);
+ desc = at_xdmac_alloc_desc(chan, GFP_
KERNEL
);
if (!desc) {
dev_warn(chan2dev(chan),
"only %d descriptors have been allocated\n", i);