linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v9 0/3] MTD: at91: Add PMECC support for at91 nand flash driver
@ 2012-05-26 13:24 Josh Wu
  2012-05-26 13:24 ` [PATCH v9 1/3] MTD: at91: extract hw ecc initialization to one function and use relaxed read/write Josh Wu
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Josh Wu @ 2012-05-26 13:24 UTC (permalink / raw)
  To: linux-arm-kernel

Code is based on 3.4-rc2

Changes since v8,
	use _relaxed read/write in most place. use writel in operations of Control Register since it needs memory barrier.
	allocate the data for PMECC computation.
	add pmecc prefix for related variable/functions.
	modify code according to J.C's suggestion. except:
		>> +	for (i = 2; i <= 2 * host->cap; i += 2) {
		> manage the j in the for loop
		since that will change to: 
		+	for (i = 2, j = 1; i <= 2 * host->cap; i += 2, j = i / 2) {
		it is not as simple as original one.

Changes since v7,
	add time out for PMECC status reading.
	modify the oobfree[0].offset to 2.
	fix coding style.

Changes since v6,
	split into 3 patches.
	remove of_flat_dt_is_compatible() function. use additional dt parameter "has-pmecc".
	refine the error handling code.
	refine original atmel_nand_init_params() function.

Changes since v5,
	add has_pmecc field to replace cpu_has_pmecc() function. Use compatible check in when proble.
	simplify the pmecc_get_ecc_bytes() function.

Changes since v4,
	fix typo and checkpatch warnings.
	fix according to JC's suggestion. replace cpu_is_xxx() with DT
	modify dt binding atmel nand document to add pmecc support.
	tested in sam9263 without break hw ecc.
	add ecc.strength.

Josh Wu (3):
  extract the hw ecc function.
  add DT variables.
  add pmecc support

 .../devicetree/bindings/mtd/atmel-nand.txt         |    6 +
 drivers/mtd/nand/atmel_nand.c                      |  939 ++++++++++++++++++--
 drivers/mtd/nand/atmel_nand_ecc.h                  |  127 ++-
 3 files changed, 997 insertions(+), 75 deletions(-)

-- 
1.7.10

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

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

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-26 13:24 [PATCH v9 0/3] MTD: at91: Add PMECC support for at91 nand flash driver Josh Wu
2012-05-26 13:24 ` [PATCH v9 1/3] MTD: at91: extract hw ecc initialization to one function and use relaxed read/write Josh Wu
2012-05-27 12:44   ` Artem Bityutskiy
2012-05-28  8:50     ` Josh Wu
2012-05-26 13:24 ` [PATCH v9 2/3] MTD: at91: add dt parameters for PMECC Josh Wu
2012-05-26 13:24 ` [PATCH v9 3/3] MTD: at91: atmel_nand: Update driver to support Programmable Multibit ECC controller Josh Wu
2012-05-27 12:50   ` Artem Bityutskiy
2012-05-28  8:43     ` Josh Wu
2012-05-28  6:58   ` Jean-Christophe PLAGNIOL-VILLARD
2012-05-28  8:34     ` Josh Wu
2012-05-29 16:01       ` Jean-Christophe PLAGNIOL-VILLARD
2012-05-28  6:39 ` [PATCH v9 0/3] MTD: at91: Add PMECC support for at91 nand flash driver Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).