From: Wolfgang Denk Date: Thu, 06 Oct 2011 20:45:08 +0200 Subject: [U-Boot] [PATCH v2 4/7] mmc: dcache: allocate cache aligned buffer for scr and switch_status In-Reply-To: <1317763491-7274-5-git-send-email-robotboy@chromium.org> References: <1317763491-7274-1-git-send-email-robotboy@chromium.org> <1317763491-7274-5-git-send-email-robotboy@chromium.org> Message-ID: <20111006184508.2C4A2140874A@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Anton Staaf, In message <1317763491-7274-5-git-send-email-robotboy@chromium.org> you wrote: > Currently the sd_change_freq function allocates two buffers on the > stack that it passes down to the MMC device driver. These buffers > could be unaligned to the L1 dcache line size. This causes problems > when using DMA and with caches enabled. > > This patch correctly cache alignes the buffers used for reading the > scr register and switch status values from an MMC device. > > Signed-off-by: Anton Staaf > Acked-by: Mike Frysinger > Cc: Lukasz Majewski > Cc: Mike Frysinger > Cc: Albert ARIBAUD > --- > drivers/mmc/mmc.c | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de About the use of language: it is impossible to sharpen a pencil with a blunt ax. It is equally vain to try to do it with ten blunt axes instead. -- Edsger Dijkstra