[PATCH v2 3/3] media: pxa_camera: use cookie returned by dmaengine_submit() for logging
From: Frank . Li
Date: Mon Nov 02 2026 - 17:31:02 EST
From: Frank Li <Frank.Li@xxxxxxx>
The debug print in pxa_dma_add_tail_buf() was logging buf->descs[i]->cookie
instead of buf->cookie[i].
dmaengine_submit() returns the cookie and it is stored in buf->cookie[i],
so use that value in the dev_dbg() call to accurately reflect the submitted
cookie.
Prepare to make struct dma_async_tx_descriptor private to the DMA engine.
Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
---
drivers/media/platform/intel/pxa_camera.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/intel/pxa_camera.c b/drivers/media/platform/intel/pxa_camera.c
index c9d57e4245181..d41cca2b2d8c2 100644
--- a/drivers/media/platform/intel/pxa_camera.c
+++ b/drivers/media/platform/intel/pxa_camera.c
@@ -903,7 +903,7 @@ static void pxa_dma_add_tail_buf(struct pxa_camera_dev *pcdev,
buf->cookie[i] = dmaengine_submit(buf->descs[i]);
dev_dbg(pcdev_to_dev(pcdev),
"%s (channel=%d) : submit vb=%p cookie=%d\n",
- __func__, i, buf, buf->descs[i]->cookie);
+ __func__, i, buf, buf->cookie[i]);
}
}
--
2.43.0