]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: queue: Fix bigger segments usage
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 12 Sep 2019 04:13:55 +0000 (13:13 +0900)
committerChristoph Hellwig <hch@lst.de>
Thu, 12 Sep 2019 12:14:09 +0000 (13:14 +0100)
commit91bb5cd944a396faaaaaeeba3e8ba81bd9c328f3
tree5b2a6de70bcea202ed9d516e1fc82aef6b4cb0b7
parente53e8a9f21834072955f4e5f256d7c0fe02ec820
mmc: queue: Fix bigger segments usage

The commit 4d8a8ac9621f ("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: Thierry Reding <treding@nvidia.com>
Fixes: 4d8a8ac9621f ("mmc: queue: use bigger segments if DMA MAP layer can merge the segments")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/mmc/core/queue.c
include/linux/mmc/host.h