From: Baruch Siach Date: Wed, 13 May 2015 08:17:38 +0000 (+0300) Subject: mtd: mxc_nand: fix truncate of unaligned oob copying X-Git-Tag: omap-for-v4.2/fixes-rc1^2~143^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d17fc3e998357469700e0782d253c31a6997505;p=pandora-kernel.git mtd: mxc_nand: fix truncate of unaligned oob copying Copy to/from oob io area might not be aligned to 4 bytes. When 8 bit ECC is used, the buffer size is 26. Add memcpy16_{to,from}io, and use them to avoid truncating the buffer. Prefer memcpy32_{to,from}io when the buffer is properly aligned for better performance. Reviewed-by: Sascha Hauer Acked-by: Uwe Kleine-König Signed-off-by: Baruch Siach Signed-off-by: Brian Norris --- Reading git-diff-tree failed