fix: nand: Optimized YAFFS2 write handling in function nand_write()

	During integration of Micron 4GB 8K page 8-bit BCH ECC
	NAND flash device with YAFFS2 root file system, it was
	found that writing YAFFS2 image of buildroot
	filesystem took ~18 minutes.
	- The code of the function nand_write() was optimized:
	* writing time of the same image  reduced to ~2 minutes.

Change-Id: I446874d9c3577095446dae26c33438f6cb090863
Signed-off-by: Vladimir Abram <vladabr@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/15778
Reviewed-by: Omri Itach <omrii@marvell.com>
Tested-by: Omri Itach <omrii@marvell.com>
1 file changed