diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2018-11-06 03:40:37 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-13 09:16:20 +0100 |
commit | 374f384bc66f7a928f11eb20c0518f0f3fc1ffd6 (patch) | |
tree | 461ce57af73cd90565e731bc82c033fc9bcdf8ad /drivers/dma | |
parent | 9063f5a99ea76f85935e3e453422d15e7be89b9e (diff) | |
download | linux-rpi3-374f384bc66f7a928f11eb20c0518f0f3fc1ffd6.tar.gz linux-rpi3-374f384bc66f7a928f11eb20c0518f0f3fc1ffd6.tar.bz2 linux-rpi3-374f384bc66f7a928f11eb20c0518f0f3fc1ffd6.zip |
dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations
commit 64068853bc77786d1a28abb4087d6a3e93aedbe2 upstream.
DMA buffer descriptors aren't allocated from atomic context, so they
can use the less heavyweigth GFP_NOWAIT.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/imx-sdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 03d46f1b0826..cb1b44d78a1f 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -1214,7 +1214,7 @@ static int sdma_alloc_bd(struct sdma_desc *desc) int ret = 0; desc->bd = dma_zalloc_coherent(NULL, bd_size, &desc->bd_phys, - GFP_ATOMIC); + GFP_NOWAIT); if (!desc->bd) { ret = -ENOMEM; goto out; |