]> Git Repo - linux.git/commit
mmc: sdhci: Set DMA mask when adding host
authorAlexandre Courbot <[email protected]>
Mon, 7 Mar 2016 02:07:55 +0000 (11:07 +0900)
committerUlf Hansson <[email protected]>
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 <[email protected]>
Acked-by: Adrian Hunter <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
drivers/mmc/host/sdhci.c
This page took 0.04114 seconds and 4 git commands to generate.