diff options
author | Shinobu Uehara <shinobu.uehara.xc@renesas.com> | 2014-08-25 07:01:32 +0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-09 15:59:15 +0400 |
commit | 81e888daab027e05130b0459e5d8e0b42dac4323 (patch) | |
tree | 5028a5a321dddcda7267a8f74c1fe611234ad3b7 /include/linux/mfd/tmio.h | |
parent | 6b98757e53cb0e93b02db4067c14afcb32c90615 (diff) | |
download | linux-81e888daab027e05130b0459e5d8e0b42dac4323.tar.xz |
mmc: tmio: check ILL_FUNC instead of CBSY
Some controllers need to check SD bus status when writing data.
Then, it checks ILL_FUNC bit on SD_INFO2 register,
and this method is controlled via TMIO_MMC_HAS_IDLE_WAIT flags.
Same method is required on tmio_mmc_data_irq() which will
be called after writing data.
Current driver is checking CBSY bit for this purpose,
but, some controllers doesn't have CBSY bit.
This patch checks ILL_FUNC bit instead of CBSY bit
if it has TMIO_MMC_HAS_IDLE_WAIT flags
[Kuninori Morimoto: tidyuped for upstreaming]
Tested-by: Nguyen Xuan Nui <nx-nui@jinso.co.jp>
Tested-by: Hiep Cao Minh <cm-hiep@jinso.co.jp>
Signed-off-by: Shinobu Uehara <shinobu.uehara.xc@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mfd/tmio.h')
0 files changed, 0 insertions, 0 deletions