Thread (19 messages) 19 messages, 6 authors, 2016-11-05

Re: [PATCH 2/4] drivers: iio: ti_am335x_adc: add dma support

From: Peter Ujfalusi <hidden>
Date: 2016-09-22 11:17:45
Also in: linux-arm-kernel, linux-iio, linux-omap, lkml

On 09/22/16 13:45, Mugunthan V N wrote:
quoted
quoted
+	if (!dma->chan)
+		return -ENODEV;
+
+	/* RX buffer */
+	dma->buf = dma_alloc_coherent(dma->chan->device->dev, DMA_BUFFER_SIZE,
+				      &dma->addr, GFP_KERNEL);
+	if (!dma->buf)
+		goto err;
+
+	dev_dbg_ratelimited(adc_dev->mfd_tscadc->dev, "got dma channel\n");
Do we need _ratelimited? AFAICS, this print is called only once.
True, will change to dev_dbg.
It would be better to remove it. It gives no useful debuggin information apart
from the fact that the driver did not failed to probe.

-- 
Péter
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help