From patchwork Wed Dec 29 13:21:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Hannemann X-Patchwork-Id: 439411 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 oBUMBEjS000490 for ; Thu, 30 Dec 2010 22:11:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752771Ab0L2NVV (ORCPT ); Wed, 29 Dec 2010 08:21:21 -0500 Received: from slowhand.arndnet.de ([88.198.19.76]:46536 "EHLO mail.unitix.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752681Ab0L2NVU (ORCPT ); Wed, 29 Dec 2010 08:21:20 -0500 Received: from kallisto.arndnet.arn (p4FCB5FF5.dip.t-dialin.net [79.203.95.245]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.unitix.de (Postfix) with ESMTP id A956113EA1; Wed, 29 Dec 2010 14:21:19 +0100 (CET) From: Arnd Hannemann To: linux-mmc@vger.kernel.org, Ian Molton Cc: linux-sh@vger.kernel.org, Arnd Hannemann Subject: [PATCH 2/2 v2] mmc: tmio: fix CMD irq handling Date: Wed, 29 Dec 2010 14:21:14 +0100 Message-Id: <1293628874-8140-3-git-send-email-arnd@arndnet.de> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1293628874-8140-1-git-send-email-arnd@arndnet.de> References: <1293628874-8140-1-git-send-email-arnd@arndnet.de> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@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]); Thu, 30 Dec 2010 22:11:23 +0000 (UTC) diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index f980042..e4926c7 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c @@ -728,8 +728,10 @@ static irqreturn_t tmio_mmc_irq(int irq, void *devid) */ /* Command completion */ - if (ireg & TMIO_MASK_CMD) { - ack_mmc_irqs(host, TMIO_MASK_CMD); + if (ireg & (TMIO_STAT_CMDRESPEND | TMIO_STAT_CMDTIMEOUT)) { + ack_mmc_irqs(host, + TMIO_STAT_CMDRESPEND | + TMIO_STAT_CMDTIMEOUT); tmio_mmc_cmd_irq(host, status); }