From patchwork Tue Jul 13 16:29:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkatraman S X-Patchwork-Id: 111816 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 o6DGRPu6032681 for ; Tue, 13 Jul 2010 16:27:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756866Ab0GMQ1Y (ORCPT ); Tue, 13 Jul 2010 12:27:24 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:59316 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752211Ab0GMQ1X (ORCPT ); Tue, 13 Jul 2010 12:27:23 -0400 Received: from dlep36.itg.ti.com ([157.170.170.91]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o6DGRM6o031105 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Jul 2010 11:27:22 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o6DGRKEL017579; Tue, 13 Jul 2010 11:27:20 -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 o6DGRIP02825; Tue, 13 Jul 2010 11:27:18 -0500 (CDT) From: Venkatraman S To: linux-mmc , linux-omap Cc: Venkatraman S Subject: [PATCH] omap hsmmc: fix processing of all dma interrupts as block completion Date: Tue, 13 Jul 2010 21:59:48 +0530 Message-Id: <1279038588-16943-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]); Tue, 13 Jul 2010 16:27:25 +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) {