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

Commit e3e020f8 authored by Manjunathappa, Prakash's avatar Manjunathappa, Prakash Committed by Chris Ball
Browse files

mmc: davinci_mmc: allow driver to work without DMA resource



Do not return probe failure with missing DMA resources, allow driver
to work in PIO mode.  Tested on da850-evm by mounting partition
followed by file creation and deletion.

Signed-off-by: default avatarManjunathappa, Prakash <prakash.pm@ti.com>
Tested-by: default avatarSekhar Nori <nsekhar@ti.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent c69042a5
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1190,12 +1190,14 @@ static int __init davinci_mmcsd_probe(struct platform_device *pdev)

	r = platform_get_resource(pdev, IORESOURCE_DMA, 0);
	if (!r)
		goto out;
		dev_warn(&pdev->dev, "RX DMA resource not specified\n");
	else
		host->rxdma = r->start;

	r = platform_get_resource(pdev, IORESOURCE_DMA, 1);
	if (!r)
		goto out;
		dev_warn(&pdev->dev, "TX DMA resource not specified\n");
	else
		host->txdma = r->start;

	host->mem_res = mem;