mmc: queue: use bigger segments if DMA MAP layer can merge the segments
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 28 Aug 2019 12:35:43 +0000 (21:35 +0900)
committerChristoph Hellwig <hch@lst.de>
Tue, 3 Sep 2019 06:32:58 +0000 (08:32 +0200)
commit38c38cb73223218f6eedf485280917af1f8a0af2
treed0f929e38db453745a4574b944eca03cf474cfa0
parent45147fb522bb459e79bdcb7504ee7ec8cfd4c12c
mmc: queue: use bigger segments if DMA MAP layer can merge the segments

When the max_segs of a mmc host is smaller than 512, the mmc
subsystem tries to use 512 segments if DMA MAP layer can merge
the segments, and then the mmc subsystem exposes such information
to the block layer by using blk_queue_can_use_dma_map_merging().

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/mmc/core/queue.c
include/linux/mmc/host.h