From patchwork Mon Oct 3 09:01:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lei Wen X-Patchwork-Id: 117410 X-Patchwork-Delegate: albert.aribaud@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id D36BAB6F70 for ; Mon, 3 Oct 2011 20:02:03 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5E839282A6; Mon, 3 Oct 2011 11:02:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e4+NJlzo4tMy; Mon, 3 Oct 2011 11:02:00 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 94AD2282A7; Mon, 3 Oct 2011 11:01:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BF3F12828B for ; Mon, 3 Oct 2011 11:01:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cr1zRGGWKoyY for ; Mon, 3 Oct 2011 11:01:53 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from na3sys009aog115.obsmtp.com (na3sys009aog115.obsmtp.com [74.125.149.238]) by theia.denx.de (Postfix) with SMTP id C142228247 for ; Mon, 3 Oct 2011 11:01:48 +0200 (CEST) Received: from MSI-MTA.marvell.com ([65.219.4.132]) by na3sys009aob115.postini.com ([74.125.148.12]) with SMTP; Mon, 03 Oct 2011 02:01:49 PDT Received: from maili.marvell.com ([10.68.76.51]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 3 Oct 2011 02:01:43 -0700 Received: from localhost (leiwen-pc.marvell.com [10.38.34.101]) by maili.marvell.com (Postfix) with ESMTP id 1676C8A008; Mon, 3 Oct 2011 02:01:43 -0700 (PDT) From: Lei Wen To: u-boot@lists.denx.de, leiwen@marvell.com Date: Mon, 3 Oct 2011 02:01:38 -0700 Message-Id: <1317632501-12336-2-git-send-email-leiwen@marvell.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1317632501-12336-1-git-send-email-leiwen@marvell.com> References: <1317632501-12336-1-git-send-email-leiwen@marvell.com> X-OriginalArrivalTime: 03 Oct 2011 09:01:43.0264 (UTC) FILETIME=[12427E00:01CC81AB] Subject: [U-Boot] [PATCH 1/4] mmc: sdhci: fix cache flush X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Only flush the memory range needed. Signed-off-by: Lei Wen --- drivers/mmc/sdhci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 9ebd33d..4a92453 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -196,7 +196,7 @@ int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, sdhci_writel(host, cmd->cmdarg, SDHCI_ARGUMENT); #ifdef CONFIG_MMC_SDMA - flush_cache(0, ~0); + flush_cache(start_addr, trans_bytes); #endif sdhci_writew(host, SDHCI_MAKE_CMD(cmd->cmdidx, flags), SDHCI_COMMAND); do {