[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1560489970-30467-2-git-send-email-jjian.zhou@mediatek.com>
Date: Fri, 14 Jun 2019 13:26:10 +0800
From: Jjian Zhou <jjian.zhou@...iatek.com>
To: <ulf.hansson@...aro.org>, <chaotian.jing@...iatek.com>,
<matthias.bgg@...il.com>, <linux-mmc@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
CC: <yong.mao@...iatek.com>, <srv_heupstream@...iatek.com>,
jjian zhou <jjian.zhou@...iatek.com>
Subject: [PATCH 2/2] mmc: mediatek: fix SDIO IRQ detection issue
From: jjian zhou <jjian.zhou@...iatek.com>
If cmd19 timeout or response crcerr occurs during execute_tuning(),
it need invoke msdc_reset_hw(). Otherwise SDIO IRQ can't be detected.
Signed-off-by: jjian zhou <jjian.zhou@...iatek.com>
Signed-off-by: Chaotian Jing <chaotian.jing@...iatek.com>
Signed-off-by: Yong Mao <yong.mao@...iatek.com>
---
drivers/mmc/host/mtk-sd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
index 29992ae..df8f09d 100644
--- a/drivers/mmc/host/mtk-sd.c
+++ b/drivers/mmc/host/mtk-sd.c
@@ -1031,6 +1031,8 @@ static void msdc_request_done(struct msdc_host *host, struct mmc_request *mrq)
msdc_track_cmd_data(host, mrq->cmd, mrq->data);
if (mrq->data)
msdc_unprepare_data(host, mrq);
+ if (host->error)
+ msdc_reset_hw(host);
mmc_request_done(host->mmc, mrq);
}
--
1.9.1
Powered by blists - more mailing lists