[PATCH 3/3] debug prints - DO NOT MERGE

Niklas Cassel
2024-12-17T16:05:09Z

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
drivers/dma/dw-edma/dw-edma-core.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/drivers/dma/dw-edma/dw-edma-core.c b/drivers/dma/dw-edma/dw-edma-core.c
index 29cbd947df57..eb69a608d087 100644
--- a/drivers/dma/dw-edma/dw-edma-core.c
+++ b/drivers/dma/dw-edma/dw-edma-core.c
@@ -197,6 +197,7 @@ static int dw_edma_start_transfer(struct dw_edma_chan *chan)
if (!desc)
return 0;

+ trace_printk("start transfer for desc: %px\n", desc);
child = list_first_entry_or_null(&desc->chunk->list,
struct dw_edma_chunk, list);
if (!child)
@@ -545,6 +546,9 @@ dw_edma_device_transfer(struct dw_edma_transfer *xfer)
}
}

+ if (xfer->type == EDMA_XFER_MEMCPY)
+ trace_printk("DMA_MEMCPY tx_prep desc: %px\n", desc);
+
return vchan_tx_prep(&chan->vc, &desc->vd, xfer->flags);

err_alloc:
@@ -653,6 +657,7 @@ static void dw_edma_done_interrupt(struct dw_edma_chan *chan)
switch (chan->request) {
case EDMA_REQ_NONE:
desc = vd2dw_edma_desc(vd);
+ trace_printk("REQ_NONE desc: %px\n", desc);
if (!desc->chunks_alloc) {
list_del(&vd->node);
vchan_cookie_complete(vd);
@@ -664,6 +669,8 @@ static void dw_edma_done_interrupt(struct dw_edma_chan *chan)
break;

case EDMA_REQ_STOP:
+ desc = vd2dw_edma_desc(vd);
+ trace_printk("REQ_STOP desc: %px\n", desc);
list_del(&vd->node);
vchan_cookie_complete(vd);
chan->request = EDMA_REQ_NONE;
--
2.47.1