]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mmc: mediatek: fix SDIO IRQ detection issue
authorjjian zhou <jjian.zhou@mediatek.com>
Mon, 17 Jun 2019 11:04:08 +0000 (19:04 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Jun 2019 11:26:50 +0000 (13:26 +0200)
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@mediatek.com>
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Signed-off-by: Yong Mao <yong.mao@mediatek.com>
Fixes: 5215b2e952f3 ("mmc: mediatek: Add MMC_CAP_SDIO_IRQ support")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c

index 34860f213adb2a6be4ab172d38845ae55c74a535..33f4b6387ef714b0683fb0c9ef83394fcc94ca56 100644 (file)
@@ -1023,6 +1023,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);
 }