* [2/3] dmaengine: imx-sdma: Use GFP_NOWAIT for dma allocations
@ 2018-07-02 13:19 Vinod Koul
0 siblings, 0 replies; only message in thread
From: Vinod Koul @ 2018-07-02 13:19 UTC (permalink / raw)
To: dmaengine; +Cc: Robin Gong, Sascha Hauer, Lucas Stach, Vinod Koul
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index d650065f42dd..dfd1fbbe7ba8 100644
--- 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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-02 13:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-02 13:19 [2/3] dmaengine: imx-sdma: Use GFP_NOWAIT for dma allocations Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox