]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdb6790e2e1f0715d954b6624df80bab04977626f
treed0f929e38db453745a4574b944eca03cf474cfa0
parent8f8d6a4949a0764ce4cdd0beabab01417f15c1df
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