Commit 811a6934 authored by Philipp Zabel's avatar Philipp Zabel Committed by Mauro Carvalho Chehab

[media] coda: initialize SRAM on probe

Zeroing the SRAM on probe helps with debugging SRAM contents.
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarKamil Debski <k.debski@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 1c2f6a99
...@@ -2174,6 +2174,7 @@ static int coda_probe(struct platform_device *pdev) ...@@ -2174,6 +2174,7 @@ static int coda_probe(struct platform_device *pdev)
if (!dev->iram.vaddr) { if (!dev->iram.vaddr) {
dev_warn(&pdev->dev, "unable to alloc iram\n"); dev_warn(&pdev->dev, "unable to alloc iram\n");
} else { } else {
memset(dev->iram.vaddr, 0, dev->iram.size);
dev->iram.blob.data = dev->iram.vaddr; dev->iram.blob.data = dev->iram.vaddr;
dev->iram.blob.size = dev->iram.size; dev->iram.blob.size = dev->iram.size;
dev->iram.dentry = debugfs_create_blob("iram", 0644, dev->iram.dentry = debugfs_create_blob("iram", 0644,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment