Skip to content

MTD: at91: Add PMECC support for at91 nand flash driver

Jean-Christophe PLAGNIOL-VILLARD linux-arm-kernel linux-mtd 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest2 of 3 patches 0 repliesNew
  2. v51 patch 0 repliesSuperseded
  3. v42 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v31 patch0 repliesSuperseded

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
3/3MTD: at91: atmel_nand: Update driver to support Programmable Multibit ECC controller+0 -01 reply
3/3MTD: at91: atmel_nand: Update driver to support Programmable Multibit ECC controller+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.

Read the v9 thread

Cover letter [PATCH v9 0/3] MTD: at91: Add PMECC support for at91 nand flash driver
Quoted 11 lines · Josh Wu

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) {

why you insist on doing j = i / 2

you can simplify it by j++

or loop on j and do i = j << 1;

it's more simple and faster

Best Regards,
J.