From patchwork Wed Feb 16 22:28:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 568571 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 p1GMTEXY029021 for ; Wed, 16 Feb 2011 22:29:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754095Ab1BPW3O (ORCPT ); Wed, 16 Feb 2011 17:29:14 -0500 Received: from mail.df.lth.se ([194.47.250.12]:54798 "EHLO df.lth.se" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752211Ab1BPW3N (ORCPT ); Wed, 16 Feb 2011 17:29:13 -0500 Received: from mer.df.lth.se (mer.df.lth.se [194.47.250.37]) by df.lth.se (8.14.2/8.13.7) with ESMTP id p1GMSxTJ019795 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Feb 2011 23:28:59 +0100 (CET) Received: from mer.df.lth.se (triad@localhost.localdomain [127.0.0.1]) by mer.df.lth.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id p1GMSx6m005808; Wed, 16 Feb 2011 23:28:59 +0100 Received: (from triad@localhost) by mer.df.lth.se (8.14.3/8.14.3/Submit) id p1GMSw8L005807; Wed, 16 Feb 2011 23:28:58 +0100 From: Linus Walleij To: linux-mmc@vger.kernel.org Cc: Sahitya Tummala , San Mehat , Linus Walleij Subject: [PATCH] msm_sdcc: remove needless cache flush after dma_unmap_sg() Date: Wed, 16 Feb 2011 23:28:53 +0100 Message-Id: <1297895333-5551-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.7.0 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.6 (demeter1.kernel.org [140.211.167.41]); Wed, 16 Feb 2011 22:29:14 +0000 (UTC) diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c index 153ab97..67b0881 100644 --- a/drivers/mmc/host/msm_sdcc.c +++ b/drivers/mmc/host/msm_sdcc.c @@ -266,14 +266,6 @@ msmsdcc_dma_complete_tlet(unsigned long data) dma_unmap_sg(mmc_dev(host->mmc), host->dma.sg, host->dma.num_ents, host->dma.dir); - if (host->curr.user_pages) { - struct scatterlist *sg = host->dma.sg; - int i; - - for (i = 0; i < host->dma.num_ents; i++) - flush_dcache_page(sg_page(sg++)); - } - host->dma.sg = NULL; host->dma.busy = 0;