From patchwork Thu Jun 8 18:51:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 9776313 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6153E601C3 for ; Thu, 8 Jun 2017 19:17:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4ECAA28546 for ; Thu, 8 Jun 2017 19:17:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42AC528577; Thu, 8 Jun 2017 19:17:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC93928546 for ; Thu, 8 Jun 2017 19:17:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751476AbdFHTRC (ORCPT ); Thu, 8 Jun 2017 15:17:02 -0400 Received: from wsip-98-189-142-135.oc.oc.cox.net ([98.189.142.135]:39094 "EHLO office-server2" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751442AbdFHTRB (ORCPT ); Thu, 8 Jun 2017 15:17:01 -0400 X-Greylist: delayed 1483 seconds by postgrey-1.27 at vger.kernel.org; Thu, 08 Jun 2017 15:17:01 EDT Received: from tkisky by office-server2 with local (Exim 4.86_2) (envelope-from ) id 1dJ2XX-00047H-Jp; Thu, 08 Jun 2017 11:52:15 -0700 From: Troy Kisky To: aisheng.dong@nxp.com, adrian.hunter@intel.com Cc: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, fabio.estevam@nxp.com, gary.bisson@boundarydevices.com, Troy Kisky Subject: [PATCH] mmc: sdhci: clear interrupt when retune interrupt received Date: Thu, 8 Jun 2017 11:51:56 -0700 Message-Id: <1496947916-15785-1-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 2.7.4 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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)) {