]> 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)
commit4d8a8ac9621f08628fc5a0814ad0f2b1c6a30d38
treed0f929e38db453745a4574b944eca03cf474cfa0
parentfaa35e0a31442d2d52cc5df76e1931eaef3a7340
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