Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8be31c89 authored by Philipp Zabel's avatar Philipp Zabel Committed by Mauro Carvalho Chehab
Browse files

[media] coda: allow running coda without iram on mx6dl

parent fcf59764
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -474,6 +474,9 @@ static void coda_setup_iram(struct coda_ctx *ctx)
	iram_info->next_paddr = dev->iram.paddr;
	iram_info->remaining = dev->iram.size;

	if (!dev->iram.vaddr)
		return;

	switch (dev->devtype->product) {
	case CODA_7541:
		dbk_bits = CODA7_USE_HOST_DBK_ENABLE | CODA7_USE_DBK_ENABLE;
+7 −7
Original line number Diff line number Diff line
@@ -1947,14 +1947,14 @@ static int coda_probe(struct platform_device *pdev)
	dev->iram.vaddr = gen_pool_dma_alloc(dev->iram_pool, dev->iram.size,
					     &dev->iram.paddr);
	if (!dev->iram.vaddr) {
		dev_err(&pdev->dev, "unable to alloc iram\n");
		return -ENOMEM;
	}

		dev_warn(&pdev->dev, "unable to alloc iram\n");
	} else {
		dev->iram.blob.data = dev->iram.vaddr;
		dev->iram.blob.size = dev->iram.size;
	dev->iram.dentry = debugfs_create_blob("iram", 0644, dev->debugfs_root,
		dev->iram.dentry = debugfs_create_blob("iram", 0644,
						       dev->debugfs_root,
						       &dev->iram.blob);
	}

	dev->workqueue = alloc_workqueue("coda", WQ_UNBOUND | WQ_MEM_RECLAIM, 1);
	if (!dev->workqueue) {