]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit7b91369b46559dcc90e8d414e31c0257972e0cbb
tree1deda3d88f97da83125c2c84167e2b3aef9f7dd1
parent83c742c344c08c2bbe338d45c6ec63110e9d5e3d
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