Linux driver reports DMA buffer address

This commit is contained in:
Joris van Rantwijk 2024-08-09 20:17:14 +02:00
parent 5632ffc6b2
commit 60800cce4b
1 changed files with 2 additions and 1 deletions

View File

@ -209,7 +209,8 @@ static int puzzlefw_probe(struct platform_device *pdev)
return ret;
}
dev_info(&pdev->dev, "%lu bytes DMA buffer\n",
dev_info(&pdev->dev, "DMA buffer at 0x%08lx size 0x%lx bytes\n",
(unsigned long)drvdata->dma_buf_addr,
(unsigned long)drvdata->dma_buf_size);
/* Set up privileged FPGA registers to access the DMA buffer. */