From: Shinobu Uehara Date: Mon, 25 Aug 2014 02:59:22 +0000 (-0700) Subject: mmc: tmio: clear error IRQ status X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f83bfa751babb521924f6d8c93055215d2eb33cc;p=linux-beck.git mmc: tmio: clear error IRQ status Next card access will be always error if it didn't clear error status 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 --- diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index a99320818f19..3d0ad737abea 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c @@ -572,6 +572,9 @@ static void tmio_mmc_card_irq_status(struct tmio_mmc_host *host, pr_debug_status(*status); pr_debug_status(*ireg); + + /* Clear the status except the interrupt status */ + sd_ctrl_write32(host, CTL_STATUS, TMIO_MASK_IRQ); } static bool __tmio_mmc_card_detect_irq(struct tmio_mmc_host *host,