From patchwork Fri Jul 16 09:21:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatraman S X-Patchwork-Id: 112379 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6G9JRl7007029 for ; Fri, 16 Jul 2010 09:19:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964791Ab0GPJT0 (ORCPT ); Fri, 16 Jul 2010 05:19:26 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:34383 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936134Ab0GPJTZ (ORCPT ); Fri, 16 Jul 2010 05:19:25 -0400 Received: from dlep34.itg.ti.com ([157.170.170.115]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id o6G9J0oD026828 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 16 Jul 2010 04:19:00 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id o6G9Ituj002986; Fri, 16 Jul 2010 04:18:55 -0500 (CDT) Received: from localhost (a0393540pc.apr.dhcp.ti.com [172.24.137.124]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o6G9IqP09202; Fri, 16 Jul 2010 04:18:53 -0500 (CDT) From: Venkatraman S To: linux-mmc Cc: linux-omap , Venkatraman S , Madhusudhan Chikkature , Andrew Morton Subject: [PATCH v2] omap hsmmc: fix processing of all dma interrupts as block completion Date: Fri, 16 Jul 2010 14:51:02 +0530 Message-Id: <1279272062-9068-1-git-send-email-svenkatr@ti.com> X-Mailer: git-send-email 1.6.3.3 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 16 Jul 2010 09:19:28 +0000 (UTC) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index b032828..d2901f8 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1273,8 +1273,11 @@ static void omap_hsmmc_dma_cb(int lch, u16 ch_status, void *cb_data) struct mmc_data *data = host->mrq->data; int dma_ch, req_in_progress; - if (ch_status & OMAP2_DMA_MISALIGNED_ERR_IRQ) - dev_dbg(mmc_dev(host->mmc), "MISALIGNED_ADRS_ERR\n"); + if (!(ch_status & OMAP_DMA_BLOCK_IRQ)) { + dev_warn(mmc_dev(host->mmc), "unexpected dma status %x\n", + ch_status); + return; + } spin_lock(&host->irq_lock); if (host->dma_ch < 0) {