Skip to content

Commit

Permalink
mmc: davinci_mmc: allow driver to work without DMA resource
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Manjunathappa, Prakash authored and Chris Ball committed Mar 22, 2013
1 parent c69042a commit e3e020f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions drivers/mmc/host/davinci_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1190,13 +1190,15 @@ static int __init davinci_mmcsd_probe(struct platform_device *pdev)

r = platform_get_resource(pdev, IORESOURCE_DMA, 0);
if (!r)
goto out;
host->rxdma = r->start;
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;
host->txdma = r->start;
dev_warn(&pdev->dev, "TX DMA resource not specified\n");
else
host->txdma = r->start;

host->mem_res = mem;
host->base = ioremap(mem->start, mem_size);
Expand Down

0 comments on commit e3e020f

Please sign in to comment.