public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mtd: nand: rework nand_ecc_ctrl interface for OOB
@ 2012-04-23 20:14 Brian Norris
  2012-04-23 20:14 ` [PATCH v2 1/2] mtd: nand: add 'use_oob' argument to NAND {read, write}_page interfaces Brian Norris
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Brian Norris @ 2012-04-23 20:14 UTC (permalink / raw)
  To: linux-mtd
  Cc: Viresh Kumar, Nicolas Ferre, Vipin Kumar, Laurent Pinchart,
	Florian Fainelli, Jamie Iles, prabhakar, Mike Dunn, Bastian Hecht,
	Dmitry Eremin-Solenikov, Kevin Cernekee, Lei Wen, Axel Lin,
	Li Yang, Jean-Christophe PLAGNIOL-VILLARD, Armando Visconti,
	Thomas Gleixner, Scott Branden, Artem Bityutskiy, Wolfram Sang,
	Matthieu CASTET, Huang Shijie, Shmulik Ladkani, Jiandong Zheng,
	Brian Norris, David Woodhouse

Hello again,

This is v2 of my patches to change the nand_chip and nand_ecc_ctrl interfaces
so that the nand_ecc_ctrl functions have information about whether the higher
layers actually need OOB data to be read/written from/to the NAND device. Per
some suggestions I have received, I have settled on using a boolean 'use_oob'
argument that tells the callee function whether the calling function is using
chip->oob_poi for OOB data.

Please refer to previous communications for other details.

Similar notes from last time:

I could not compile all the affected drivers, since some required ARCH-specific
builds that I am not familiar with.

Artem: can you perform your regular compile tests? I compile-tested as many as
I could.

Others: if you care about your driver, please compile test and review to be
sure I'm doing things safely for you. Because most in-kernel drivers seem to be
perfecly happy using nand_chip.oob_poi for OOB data unconditionally, I have not
struggled to port most of them to take advantage of this full change. However,
some developers have noted that certain drivers could benefit from utilizing
this 'use_oob' parameter. Fell free to write/submit/review any code on top of
these patches, assuming they are eventually accepted.

Thanks for reviewing!

Brian

Brian Norris (2):
  mtd: nand: add 'use_oob' argument to NAND {read,write}_page
    interfaces
  mtd: nand: nand_base - pass proper 'use_oob' parameter

 drivers/mtd/nand/atmel_nand.c          |    3 +-
 drivers/mtd/nand/bcm_umi_bch.c         |   10 +++--
 drivers/mtd/nand/bcm_umi_nand.c        |    2 +-
 drivers/mtd/nand/bf5xx_nand.c          |    4 +-
 drivers/mtd/nand/cafe_nand.c           |   13 ++++---
 drivers/mtd/nand/denali.c              |    8 ++--
 drivers/mtd/nand/docg4.c               |   12 +++---
 drivers/mtd/nand/fsl_elbc_nand.c       |   11 ++----
 drivers/mtd/nand/fsl_ifc_nand.c        |   10 ++---
 drivers/mtd/nand/fsmc_nand.c           |    3 +-
 drivers/mtd/nand/gpmi-nand/gpmi-nand.c |    6 ++--
 drivers/mtd/nand/nand_base.c           |   58 ++++++++++++++++++++-----------
 drivers/mtd/nand/pxa3xx_nand.c         |    4 +-
 drivers/mtd/nand/sh_flctl.c            |    4 +-
 include/linux/mtd/nand.h               |   11 +++---
 15 files changed, 89 insertions(+), 70 deletions(-)

-- 
1.7.5.4.2.g519b1

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-05-02 16:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-23 20:14 [PATCH v2 0/2] mtd: nand: rework nand_ecc_ctrl interface for OOB Brian Norris
2012-04-23 20:14 ` [PATCH v2 1/2] mtd: nand: add 'use_oob' argument to NAND {read, write}_page interfaces Brian Norris
2012-04-24 12:28   ` [PATCH v2 1/2] mtd: nand: add 'use_oob' argument to NAND {read,write}_page interfaces Shmulik Ladkani
2012-04-25  3:42     ` Brian Norris
2012-04-25  7:25       ` Shmulik Ladkani
2012-04-23 20:14 ` [PATCH v2 2/2] mtd: nand: nand_base - pass proper 'use_oob' parameter Brian Norris
2012-04-25 15:38 ` [PATCH v2 0/2] mtd: nand: rework nand_ecc_ctrl interface for OOB Artem Bityutskiy
2012-04-25 18:22   ` Brian Norris
2012-04-25 15:45 ` Artem Bityutskiy
2012-04-25 16:07   ` Bastian Hecht
2012-04-25 16:25     ` Guennadi Liakhovetski
2012-05-01 19:02 ` Jiandong Zheng
2012-05-02  1:02   ` Brian Norris
2012-05-02 16:38     ` JD (Jiandong) Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox