mmc: mediatek: correct the implementation of msdc_card_busy
msdc_card_busy only need check if the data0 is low. In sdio data1 irq mode, data1 may be low because of interruption. Signed-off-by: Yong Mao <yong.mao@mediatek.com> Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
e9acc77dd0
commit
3bc702ed21
|
@ -1075,11 +1075,8 @@ static int msdc_card_busy(struct mmc_host *mmc)
|
||||||
struct msdc_host *host = mmc_priv(mmc);
|
struct msdc_host *host = mmc_priv(mmc);
|
||||||
u32 status = readl(host->base + MSDC_PS);
|
u32 status = readl(host->base + MSDC_PS);
|
||||||
|
|
||||||
/* check if any pin between dat[0:3] is low */
|
/* only check if data0 is low */
|
||||||
if (((status >> 16) & 0xf) != 0xf)
|
return !(status & BIT(16));
|
||||||
return 1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void msdc_request_timeout(struct work_struct *work)
|
static void msdc_request_timeout(struct work_struct *work)
|
||||||
|
|
Loading…
Reference in New Issue