]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: pass proper 'oob_required' parameter
authorBrian Norris <computersforpeace@gmail.com>
Wed, 2 May 2012 17:14:56 +0000 (10:14 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 04:21:35 +0000 (23:21 -0500)
commit513abda3c339442fa4cb9b205b77fb8887bfb01a
tree91e33fd230cf2ea89dddd90db9ea077f0c93f4e3
parent91a31f9a5e2da5a43e56f56d2f5a3490e1abdd7a
mtd: nand: pass proper 'oob_required' parameter

We now have an interface for notifying the nand_ecc_ctrl functions when OOB
data must be returned to the upper layers and when it may be left untouched.
This patch fills in the 'oob_required' parameter properly from
nand_do_{read,write}_ops. When utilized properly in the lower layers, this
parameter can improve performance and/or reduce complexity for NAND HW and SW
that can simply avoid transferring the OOB data.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Acked-by: Jiandong Zheng <jdzheng@broadcom.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c