]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: align max segment size with logical block size
authorMing Lei <ming.lei@redhat.com>
Wed, 27 Feb 2019 16:02:11 +0000 (00:02 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 27 Feb 2019 17:01:25 +0000 (18:01 +0100)
commita0dc5267cd8057270becedb112be8b9862f42f83
treec498a37b659a6e2de273832fd990a2314d28f67d
parent619a4b563d8f1e546c6fa43a695591d90065c27f
mmc: core: align max segment size with logical block size

Logical block size is the lowest possible block size that the storage
device can address. Max segment size is often related with controller's
DMA capability. And it is reasonable to align max segment size with
logical block size.

SDHCI sets un-aligned max segment size, and causes ADMA error, so
fix it by aligning max segment size with logical block size.

Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Cc: Faiz Abbas <faiz_abbas@ti.com>
Cc: linux-block@vger.kernel.org
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c
drivers/mmc/core/queue.c