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: Manjunathappa, Prakash <prakash.pm@ti.com> Tested-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
c69042a51e
commit
e3e020f8ac
|
@ -1190,13 +1190,15 @@ static int __init davinci_mmcsd_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
r = platform_get_resource(pdev, IORESOURCE_DMA, 0);
|
r = platform_get_resource(pdev, IORESOURCE_DMA, 0);
|
||||||
if (!r)
|
if (!r)
|
||||||
goto out;
|
dev_warn(&pdev->dev, "RX DMA resource not specified\n");
|
||||||
host->rxdma = r->start;
|
else
|
||||||
|
host->rxdma = r->start;
|
||||||
|
|
||||||
r = platform_get_resource(pdev, IORESOURCE_DMA, 1);
|
r = platform_get_resource(pdev, IORESOURCE_DMA, 1);
|
||||||
if (!r)
|
if (!r)
|
||||||
goto out;
|
dev_warn(&pdev->dev, "TX DMA resource not specified\n");
|
||||||
host->txdma = r->start;
|
else
|
||||||
|
host->txdma = r->start;
|
||||||
|
|
||||||
host->mem_res = mem;
|
host->mem_res = mem;
|
||||||
host->base = ioremap(mem->start, mem_size);
|
host->base = ioremap(mem->start, mem_size);
|
||||||
|
|
Loading…
Reference in a new issue