From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753361Ab0EKPxk (ORCPT ); Tue, 11 May 2010 11:53:40 -0400 Received: from newsmtp5.atmel.com ([204.2.163.5]:30067 "EHLO sjogate2.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751439Ab0EKPxi (ORCPT ); Tue, 11 May 2010 11:53:38 -0400 From: Nicolas Ferre To: linux-arm-kernel@lists.infradead.org, akpm@linux-foundation.org, linux-mmc@vger.kernel.org, avictor.za@gmail.com, linux@arm.linux.org.uk Cc: linux-kernel@vger.kernel.org, Nicolas Ferre Subject: [PATCH] MMC: at91_mci: modify cache flush routines Date: Tue, 11 May 2010 19:09:53 +0200 Message-Id: <1273597793-28104-1-git-send-email-nicolas.ferre@atmel.com> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <20100511134409.GB27201@n2100.arm.linux.org.uk> References: <20100511134409.GB27201@n2100.arm.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As we were using an internal dma flushing routine, this patch changes to the DMA API flush_kernel_dcache_page(). Driver is able to compile now. Signed-off-by: Nicolas Ferre --- drivers/mmc/host/at91_mci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/at91_mci.c b/drivers/mmc/host/at91_mci.c index a6dd7da..813d208 100644 --- a/drivers/mmc/host/at91_mci.c +++ b/drivers/mmc/host/at91_mci.c @@ -315,7 +315,7 @@ static void at91_mci_post_dma_read(struct at91mci_host *host) } kunmap_atomic(sgbuffer, KM_BIO_SRC_IRQ); - dmac_flush_range((void *)sgbuffer, ((void *)sgbuffer) + amount); + flush_kernel_dcache_page(sg_page(sg)); data->bytes_xfered += amount; if (size == 0) break; -- 1.5.6.5