]> git.baikalelectronics.ru Git - kernel.git/commit
mxc nand: use buffers
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 4 Jun 2009 15:12:26 +0000 (17:12 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 12 Nov 2009 07:32:32 +0000 (08:32 +0100)
commitc1eec8013f147840fd4c6e822389d3fb5fb0de45
tree30f2525e4aa2a0822486d17bad356b90423d7478
parent75c7fb8485ba79ab983e01893a30f601db76e6c0
mxc nand: use buffers

The NAND controller has some limitations how to access the
internal buffers. It only allows 32 bit accesses. The driver
used to work around this by having special alignment aware
copy routines.
We now copy the whole page to a buffer in memory and let the
access functions use this buffer. This simplifies the driver.
A bonnie++ test showed that this has no negative performance
impact on the driver.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
drivers/mtd/nand/mxc_nand.c