aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/Kconfig
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2015-05-13 11:17:38 +0300
committerBrian Norris <computersforpeace@gmail.com>2015-05-20 15:29:53 -0700
commit0d17fc3e998357469700e0782d253c31a6997505 (patch)
treebabdc74ddc3c407f843ebeebe608b1a45f2e8c6e /drivers/mtd/nand/Kconfig
parentmtd: mxc_nand: limit the size of used oob (diff)
downloadlinux-dev-0d17fc3e998357469700e0782d253c31a6997505.tar.xz
linux-dev-0d17fc3e998357469700e0782d253c31a6997505.zip
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 <s.hauer@pengutronix.de> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/Kconfig')
0 files changed, 0 insertions, 0 deletions