]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Set DMA mask when adding host
authorAlexandre Courbot <acourbot@nvidia.com>
Mon, 7 Mar 2016 02:07:55 +0000 (11:07 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 18 Mar 2016 08:11:11 +0000 (09:11 +0100)
commit61c1a547d41e63a645b0dc82de3ed9f4f20f59bf
tree1deda3d88f97da83125c2c84167e2b3aef9f7dd1
parent6c716b5cac8d15d6821c91dd3b6c7f4afd0d02a3
mmc: sdhci: Set DMA mask when adding host

Set the DMA mask in sdhci_add_host() after we determined the
capabilities of the device. 64-bit devices in particular are given the
proper mask that ensures bounce buffers are not used.

Also disable DMA if no proper DMA mask can be set, as the DMA-API
documentation specifies.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c