From: Shinobu Uehara Date: Mon, 25 Aug 2014 03:01:32 +0000 (-0700) Subject: mmc: tmio: check ILL_FUNC instead of CBSY X-Git-Tag: fixes-against-v3.18-rc2~127^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81e888daab027e05130b0459e5d8e0b42dac4323;p=pandora-kernel.git 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 Tested-by: Hiep Cao Minh Signed-off-by: Shinobu Uehara Signed-off-by: Kuninori Morimoto Signed-off-by: Ulf Hansson --- Reading git-diff-tree failed