diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-09-09 02:45:25 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-09 08:15:07 -0400 |
commit | bbf0208d39121bd8873b032459cb2b5f35e14593 (patch) | |
tree | 63c4de45acb41f5d07f62ad363656d09d8dcbf0f /drivers/mmc | |
parent | afd8c29d254d7fddbae454f217fa5facefe8f5b0 (diff) |
mmc: use .multi_io_quirk on tmio_mmc
Now, tmio_mmc can use .multi_io_quirk callback
instead of MMC_CAP2_NO_MULTI_READ flags.
let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/tmio_mmc_pio.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index ba454131f9a8..ff5ff0f725c9 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c | |||
@@ -970,12 +970,25 @@ static int tmio_mmc_get_ro(struct mmc_host *mmc) | |||
970 | return ret; | 970 | return ret; |
971 | } | 971 | } |
972 | 972 | ||
973 | static int tmio_multi_io_quirk(struct mmc_card *card, | ||
974 | unsigned int direction, int blk_size) | ||
975 | { | ||
976 | struct tmio_mmc_host *host = mmc_priv(card->host); | ||
977 | struct tmio_mmc_data *pdata = host->pdata; | ||
978 | |||
979 | if (pdata->multi_io_quirk) | ||
980 | return pdata->multi_io_quirk(card, direction, blk_size); | ||
981 | |||
982 | return blk_size; | ||
983 | } | ||
984 | |||
973 | static const struct mmc_host_ops tmio_mmc_ops = { | 985 | static const struct mmc_host_ops tmio_mmc_ops = { |
974 | .request = tmio_mmc_request, | 986 | .request = tmio_mmc_request, |
975 | .set_ios = tmio_mmc_set_ios, | 987 | .set_ios = tmio_mmc_set_ios, |
976 | .get_ro = tmio_mmc_get_ro, | 988 | .get_ro = tmio_mmc_get_ro, |
977 | .get_cd = mmc_gpio_get_cd, | 989 | .get_cd = mmc_gpio_get_cd, |
978 | .enable_sdio_irq = tmio_mmc_enable_sdio_irq, | 990 | .enable_sdio_irq = tmio_mmc_enable_sdio_irq, |
991 | .multi_io_quirk = tmio_multi_io_quirk, | ||
979 | }; | 992 | }; |
980 | 993 | ||
981 | static int tmio_mmc_init_ocr(struct tmio_mmc_host *host) | 994 | static int tmio_mmc_init_ocr(struct tmio_mmc_host *host) |