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

Commit 190657c9 authored by Subhash Jadavani's avatar Subhash Jadavani Committed by Chris Ball
Browse files

mmc: msm_sdcc: Handle dma resource not present case



If DMA resource is not available then SDCC driver
should atleast work in PIO data transfer mode.

Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 19207f05
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -1242,9 +1242,13 @@ msmsdcc_probe(struct platform_device *pdev)
	/*
	 * Setup DMA
	 */
	if (host->dmares) {
		ret = msmsdcc_init_dma(host);
		if (ret)
			goto ioremap_free;
	} else {
		host->dma.channel = -1;
	}

	/* Get our clocks */
	host->pclk = clk_get(&pdev->dev, "sdc_pclk");
@@ -1388,6 +1392,7 @@ msmsdcc_probe(struct platform_device *pdev)
 pclk_put:
	clk_put(host->pclk);
dma_free:
	if (host->dmares)
		dma_free_coherent(NULL, sizeof(struct msmsdcc_nc_dmadata),
					host->dma.nc, host->dma.nc_busaddr);
ioremap_free: