]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: nand: pxa3xx: Move the data buffer clean to prepare_start_command()
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Thu, 14 Nov 2013 21:25:34 +0000 (18:25 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 22 Nov 2013 22:12:59 +0000 (14:12 -0800)
commitb0fa816b80797d152a4ecda651d4c6ed873289d7
treece1c379588a03eaf7e7c55dd94eb0a80ecaea157
parent4cac9682142dc2f6f7d0553ea0efa89d600a248c
mtd: nand: pxa3xx: Move the data buffer clean to prepare_start_command()

To allow future support of multiple page reading/writing, move the data
buffer clean out of prepare_set_command().

This is done to prevent the data buffer from being cleaned on every command
preparation, when a multiple command sequence is implemented to read/write
pages larger than the FIFO size (2 KiB).

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/pxa3xx_nand.c