diff mbox

[05/10] dma: sdma-imx: print an error when context load fails.

Message ID 1434385144-4432-6-git-send-email-stillcompiling@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Joshua Clayton June 15, 2015, 4:19 p.m. UTC
Its not nice to have the context load fail silently.

Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
---
 drivers/dma/imx-sdma.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index fdf88c4..8358a1a 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -827,6 +827,10 @@  static int sdma_load_context(struct sdma_channel *sdmac)
 
 	spin_unlock_irqrestore(&sdma->channel_0_lock, flags);
 
+	if (ret)
+		dev_err(sdma->dev, "SDMA channel %d: chan0 timed out\n",
+			channel);
+
 	return ret;
 }