From patchwork Wed Dec 22 08:01:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 426331 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBM80ucI014773 for ; Wed, 22 Dec 2010 08:01:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752569Ab0LVIBw (ORCPT ); Wed, 22 Dec 2010 03:01:52 -0500 Received: from mail.lixom.net ([70.86.134.90]:53493 "EHLO mail.lixom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752396Ab0LVIBw (ORCPT ); Wed, 22 Dec 2010 03:01:52 -0500 Received: by mail.lixom.net (Postfix, from userid 1000) id 2C47E566121; Wed, 22 Dec 2010 02:01:52 -0600 (CST) From: Olof Johansson To: Chris Ball Cc: Wolfram Sang , linux-mmc@vger.kernel.org, linux-tegra@vger.kernel.org, Olof Johansson Subject: [PATCH 2/3] sdhci: don't finish commands in flight Date: Wed, 22 Dec 2010 02:01:10 -0600 Message-Id: <1293004871-1918-3-git-send-email-olof@lixom.net> X-Mailer: git-send-email 1.7.3.GIT In-Reply-To: <1293004871-1918-1-git-send-email-olof@lixom.net> References: <1293004871-1918-1-git-send-email-olof@lixom.net> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 22 Dec 2010 08:01:53 +0000 (UTC) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index c0094c1..562aaea 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1432,7 +1432,8 @@ static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask) host->cmd->error = -EILSEQ; if (host->cmd->error) { - tasklet_schedule(&host->finish_tasklet); + if (intmask & SDHCI_INT_RESPONSE) + tasklet_schedule(&host->finish_tasklet); return; }