public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: sdhci: clear interrupt when retune interrupt received
@ 2017-06-08 18:51 Troy Kisky
  2017-06-09 12:46 ` Adrian Hunter
  0 siblings, 1 reply; 5+ messages in thread
From: Troy Kisky @ 2017-06-08 18:51 UTC (permalink / raw)
  To: aisheng.dong, adrian.hunter
  Cc: ulf.hansson, linux-mmc, fabio.estevam, gary.bisson, Troy Kisky

This lets the loop exit before max_loops reaches 0.

Fixes: f37b20ebc4bc ("mmc: sdhci: add standard hw auto retuning support")

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
---
 drivers/mmc/host/sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index ecd0d43..e104194 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2687,7 +2687,7 @@ static irqreturn_t sdhci_irq(int irq, void *dev_id)
 
 		/* Clear selected interrupts. */
 		mask = intmask & (SDHCI_INT_CMD_MASK | SDHCI_INT_DATA_MASK |
-				  SDHCI_INT_BUS_POWER);
+				  SDHCI_INT_BUS_POWER | SDHCI_INT_RETUNE);
 		sdhci_writel(host, mask, SDHCI_INT_STATUS);
 
 		if (intmask & (SDHCI_INT_CARD_INSERT | SDHCI_INT_CARD_REMOVE)) {
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-12 14:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08 18:51 [PATCH] mmc: sdhci: clear interrupt when retune interrupt received Troy Kisky
2017-06-09 12:46 ` Adrian Hunter
2017-06-09 15:45   ` Troy Kisky
2017-06-12 12:33     ` Adrian Hunter
2017-06-12 14:03       ` A.S. Dong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox