projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
680302c
)
dmaengine: imx-sdma: Use GFP_NOWAIT for dma allocations
author
Vinod Koul
<vkoul@kernel.org>
Mon, 2 Jul 2018 13:07:27 +0000
(18:37 +0530)
committer
Vinod Koul
<vkoul@kernel.org>
Mon, 2 Jul 2018 13:07:27 +0000
(18:37 +0530)
The memory allocation in DMA callbacks should use GFP_NOWAIT, so
update this one and fix code alignment for this call while at it.
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/imx-sdma.c
b/drivers/dma/imx-sdma.c
index d650065f42dd6e0c62a62ad5450474c358446716..dfd1fbbe7ba8fb77d95cd7e9f0efe99eb8e85a07 100644
(file)
--- a/
drivers/dma/imx-sdma.c
+++ b/
drivers/dma/imx-sdma.c
@@
-1157,8
+1157,8
@@
static int sdma_alloc_bd(struct sdma_desc *desc)
{
int ret = 0;
- desc->bd = dma_pool_alloc(desc->sdmac->bd_pool, GFP_
ATOMIC
,
-
&desc->bd_phys);
+ desc->bd = dma_pool_alloc(desc->sdmac->bd_pool, GFP_
NOWAIT
,
+ &desc->bd_phys);
if (!desc->bd) {
ret = -ENOMEM;
goto out;