aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/tmio_mmc_pio.c
diff options
context:
space:
mode:
authorShinobu Uehara <shinobu.uehara.xc@renesas.com>2014-08-24 22:59:22 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2014-09-09 07:59:13 -0400
commitf83bfa751babb521924f6d8c93055215d2eb33cc (patch)
tree609e0fe5a9aca7b5707af9fad004580ccbcc1e58 /drivers/mmc/host/tmio_mmc_pio.c
parent384b2cbd56a02efb16358ed7c0c039e4afca5ed0 (diff)
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 <nx-nui@jinso.co.jp> Tested-by: Hiep Cao Minh <cm-hiep@jinso.co.jp> Signed-off-by: Shinobu Uehara <shinobu.uehara.xc@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc_pio.c')
-rw-r--r--drivers/mmc/host/tmio_mmc_pio.c3
1 files changed, 3 insertions, 0 deletions
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,
572 572
573 pr_debug_status(*status); 573 pr_debug_status(*status);
574 pr_debug_status(*ireg); 574 pr_debug_status(*ireg);
575
576 /* Clear the status except the interrupt status */
577 sd_ctrl_write32(host, CTL_STATUS, TMIO_MASK_IRQ);
575} 578}
576 579
577static bool __tmio_mmc_card_detect_irq(struct tmio_mmc_host *host, 580static bool __tmio_mmc_card_detect_irq(struct tmio_mmc_host *host,