dmaengine: xilinx_dma: Print debug message when no free tx segments
authorNicholas Graumann <nick.graumann@gmail.com>
Tue, 15 Oct 2019 14:48:23 +0000 (20:18 +0530)
committerVinod Koul <vkoul@kernel.org>
Sun, 20 Oct 2019 14:05:27 +0000 (19:35 +0530)
commit722b9e6d7e49b1dc429f9b65680b325c1ce9a763
tree288f6c049f3d18e418ff3faf4751f0e4ab19a1ed
parentd8bae21a48dbe132788291257638f323f4ee5c94
dmaengine: xilinx_dma: Print debug message when no free tx segments

The driver should not run out of tx segments in normal operation. But,
if the user attempts to prepare a transaction with a large sg list,
the driver may not have enough free segments to accommodate the request.

Log a message at the debug level to inform the user in case they are
experiencing issues.

Signed-off-by: Nicholas Graumann <nick.graumann@gmail.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Link: https://lore.kernel.org/r/1571150904-3988-7-git-send-email-radhey.shyam.pandey@xilinx.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c