From patchwork Thu Sep 23 13:33:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Hannemann X-Patchwork-Id: 201972 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 o8NDXwjl010499 for ; Thu, 23 Sep 2010 13:33:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752091Ab0IWNd6 (ORCPT ); Thu, 23 Sep 2010 09:33:58 -0400 Received: from mta-2.ms.rz.RWTH-Aachen.DE ([134.130.7.73]:58396 "EHLO mta-2.ms.rz.rwth-aachen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752160Ab0IWNd6 (ORCPT ); Thu, 23 Sep 2010 09:33:58 -0400 Content-transfer-encoding: 7BIT Received: from ironport-out-1.rz.rwth-aachen.de ([134.130.5.40]) by mta-2.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0L9700CQOCCJO840@mta-2.ms.rz.RWTH-Aachen.de>; Thu, 23 Sep 2010 15:33:55 +0200 (CEST) X-IronPort-AV: E=Sophos; i="4.57,223,1283724000"; d="scan'208"; a="73580591" Received: from smarthost-2.ms.rz.rwth-aachen.de (HELO smarthost.rwth-aachen.de) ([134.130.7.90]) by ironport-in-1.rz.rwth-aachen.de with ESMTP; Thu, 23 Sep 2010 15:33:55 +0200 Received: from localhost.localdomain (informatik-4-137-226-12-76.nn.RWTH-Aachen.DE [137.226.12.76] (may be forged)) by smarthost.rwth-aachen.de (8.14.4+Sun/8.13.8/1) with ESMTP id o8NDXtgP004269; Thu, 23 Sep 2010 15:33:55 +0200 (CEST) From: Arnd Hannemann To: linux-mmc@vger.kernel.org Cc: Ian Molton , linux-sh@vger.kernel.org, Arnd Hannemann Subject: [PATCH 2/2] tmio_mmc: fix CMD irq handling Date: Thu, 23 Sep 2010 15:33:54 +0200 Message-id: <1285248834-4434-2-git-send-email-arnd@arndnet.de> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1285248834-4434-1-git-send-email-arnd@arndnet.de> References: <1285248834-4434-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, 23 Sep 2010 13:33:59 +0000 (UTC) diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index cb66af5..75a0aca 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c @@ -430,8 +430,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); }