From: Wolfgang Denk Date: Tue, 25 Oct 2011 09:26:18 +0200 Subject: [U-Boot] [PATCH v3 5/6] mmc: dcache: allocate cache aligned buffers for ext_csd In-Reply-To: <1318463764-28244-6-git-send-email-robotboy@chromium.org> References: <1318463764-28244-1-git-send-email-robotboy@chromium.org> <1318463764-28244-6-git-send-email-robotboy@chromium.org> Message-ID: <20111025072618.9BB241408EA7@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 <1318463764-28244-6-git-send-email-robotboy@chromium.org> you wrote: > Currently the mmc_change_freq and mmc_startup functions allocates > buffers on the stack that are passed 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 > ext_csd data from an MMC device. > > Signed-off-by: Anton Staaf > Cc: Lukasz Majewski > Cc: Mike Frysinger > Cc: Albert ARIBAUD > --- > drivers/mmc/mmc.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 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 HEALTH WARNING: Care Should Be Taken When Lifting This Product, Since Its Mass, and Thus Its Weight, Is Dependent on Its Velocity Relative to the User.