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)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:25 +0000 (13:59 +0200)
commit2e47e84245adcb1b3872210678b6146f674fb3ff
tree0ab356fa3d0d079a855ed65e5b51326328738e99
parentadc828556dfc3f87a5c1338fc5412cbec3c0b529
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>
drivers/mmc/card/block.c
include/linux/mmc/host.h