[PATCH] mmc: sdhci-sirf: enable dmabounce since SiRFprimaII MMC DMA only access up to 256MB

2013-10-27 Thread Barry Song
From: Bin Shi bin@csr.com on SiRFprimaII, sdhci is after pci-iobg bus, the bus bridge has a hardware limitation. DMA operations after this bridge can not access memory address higher than 256MB. this patch enables dmabounce for SiRFprimaII to fix DMA of primaII. for other SiRF SoCs, there is

Re: [PATCH] mmc: sdhci-sirf: enable dmabounce since SiRFprimaII MMC DMA only access up to 256MB

2013-10-27 Thread Russell King - ARM Linux
On Mon, Oct 28, 2013 at 05:23:50AM +0800, Barry Song wrote: @@ -92,6 +103,13 @@ static int sdhci_sirf_probe(struct platform_device *pdev) } } + if (of_machine_is_compatible(sirf,prima2)) { + if (pdev-dev.dma_mask) +