Skip to content
Commit 427b0034 authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by Christoph Hellwig
Browse files

mmc: queue: Fix bigger segments usage



The commit 38c38cb7 ("mmc: queue: use bigger segments if DMA MAP
layer can merge the segments") always enables the bugger segments
if DMA MAP layer can merge the segments, but some controllers (SDHCI)
have strictly limitation about the segments size, and then the commit
breaks on the controllers.

To fix the issue, this patch adds a new flag MMC_CAP2_MERGE_CAPABLE
into the struct mmc_host and the bigger segments usage is disabled
as default.

Reported-by: default avatarThierry Reding <treding@nvidia.com>
Fixes: 38c38cb7 ("mmc: queue: use bigger segments if DMA MAP layer can merge the segments")
Signed-off-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 5489c8e0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment