]> code.ossystems Code Review - bsp/u-boot.git/commit
mtd: nand: mxs: fix cache alignment for cache lines >32
authorStefan Agner <stefan.agner@toradex.com>
Tue, 2 Aug 2016 06:55:18 +0000 (23:55 -0700)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 3 Aug 2016 19:36:01 +0000 (16:36 -0300)
commit28830fe34a010bf7da705c2ab279e1ef137b0ece
tree045ade92a404fa89f4036fa959ea96f49b4a7485
parente38d99f2c1eb1ff4076cc42ba93191c7c8038aa4
mtd: nand: mxs: fix cache alignment for cache lines >32

Currently the command buffer gets allocated with a size of 32 bytes.
This causes warning messages on systems with cache lines bigger than
32 bytes:
CACHE: Misaligned operation at range [9df17a009df17a20]

Define command buffer to be at least 32 bytes, but more if cache
line is bigger.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
drivers/mtd/nand/mxs_nand.c