Thread (23 messages) 23 messages, 3 authors, 2019-12-23

Re: [PATCH 12/14] dmaengine: ti: omap-dma: Use cpu notifier to block idle for omap2

From: Tony Lindgren <tony@atomide.com>
Date: 2019-12-17 00:27:21
Also in: dmaengine, linux-devicetree, linux-omap

* Tony Lindgren [off-list ref] [191217 00:20]:
quoted hunk ↗ jump to hunk
diff --git a/drivers/dma/ti/omap-dma.c b/drivers/dma/ti/omap-dma.c
--- a/drivers/dma/ti/omap-dma.c
+++ b/drivers/dma/ti/omap-dma.c
+	case CPU_CLUSTER_PM_ENTER:
+		while (1) {
+			lch = find_next_bit(od->lch_bitmap, od->lch_count,
+					    lch + 1);
+			if (lch >= od->lch_count)
+				break;
+			c = od->lch_map[lch];
+			if (!c)
+				continue;
+			if (omap_dma_chan_read(c, CCR) & CCR_ENABLE) {
+				pr_info("XXX %s: lch%i busy\n", __func__, lch);
+				return NOTIFY_BAD;
Oops the pr_info line here can be dropped :)

Regards,

Tony

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help