mmc: Add .multi_io_quirk callback for multi I/O HW bug
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 3 Sep 2014 02:08:53 +0000 (19:08 -0700)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 5 Dec 2014 01:11:09 +0000 (10:11 +0900)
commit5bc8e01f359d3ad7bc686b73d668d90499e53845
tree2baf73215b51c3c789430369d8d69efeb9fc4f9e
parent3f24140ff66ec61af497d4fb6d9bae0d9ebf2aca
mmc: Add .multi_io_quirk callback for multi I/O HW bug

Historically, we have been using MMC_CAP* to handle host HW issues and
currently the block layer uses MMC_CAP2_NO_MULTI_READ flag for a multi
I/O HW bug workaround.

There are a few tweaks needed to make MMC_CAP2_NO_MULTI_READ suite all
situations. Therefore let's add an optional host ops callback to enable
host drivers to return the number of blocks it allows per request.

In a future patch and when host drivers have converted to the new
callback, MMC_CAP2_NO_MULTI_READ shall be removed.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
(cherry picked from commit 2e47e84245adcb1b3872210678b6146f674fb3ff)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/mmc/card/block.c
include/linux/mmc/host.h