mmc: sdhci-msm: update dma_mask for SDHC device
Set the dma_mask to 0xffffffff to indicate full 32-bit address space and thus avoiding unnecessary buffers bouncing from high to low memory. Change-Id: Idaffe14d4e54a27b15e5a5d82dad41d843714d57 Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
This commit is contained in:
parent
cff2042613
commit
8bbdb3514b
1 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <linux/slab.h>
|
||||
#include <linux/mmc/mmc.h>
|
||||
#include <linux/mmc/slot-gpio.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <mach/gpio.h>
|
||||
#include <mach/msm_bus.h>
|
||||
|
||||
|
@ -2035,6 +2036,13 @@ static int sdhci_msm_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
if (dma_supported(mmc_dev(host->mmc), DMA_BIT_MASK(32))) {
|
||||
host->dma_mask = DMA_BIT_MASK(32);
|
||||
mmc_dev(host->mmc)->dma_mask = &host->dma_mask;
|
||||
} else {
|
||||
dev_err(&pdev->dev, "%s: Failed to set dma mask\n", __func__);
|
||||
}
|
||||
|
||||
ret = sdhci_add_host(host);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "Add host failed (%d)\n", ret);
|
||||
|
|
Loading…
Add table
Reference in a new issue