]> Git Repo - u-boot.git/commit
mtd: nand: fsmc: Fixes and cleanup for fsmc_nand_switch_ecc()
authorStefan Roese <[email protected]>
Mon, 14 Sep 2015 06:47:47 +0000 (08:47 +0200)
committerTom Rini <[email protected]>
Tue, 15 Sep 2015 19:05:21 +0000 (15:05 -0400)
commit62c390f8a3f0aabe61656d6996f1d49766de2c20
treed084c121f3a4995abdc2f8c3ba942eff35b8bf22
parent0226d8780b3886a4acdd2d4c9731419306d470f6
mtd: nand: fsmc: Fixes and cleanup for fsmc_nand_switch_ecc()

This patch addresses some comments raised by Scott in the last versions.
Here the changes in detail:

- Removed __maybe_unused as its not needed
- Added check for strength == 4 and error out for the unsupported
  ECC strength values
- Don't set .caclulate, .correct, and .bytes for NAND_ECC_SOFT_BCH as this
  will be done in nand_scan_tail()
- Set .caclulate back to fsmc_read_hwecc() in the HW case
- Added comment that this function will only be called on SPEAr platforms,
  not supporting the BCH8 HW ECC (FSMC_VER8)

Signed-off-by: Stefan Roese <[email protected]>
Cc: Scott Wood <[email protected]>
Cc: Tom Rini <[email protected]>
Acked-by: Scott Wood <[email protected]>
drivers/mtd/nand/fsmc_nand.c
This page took 0.035615 seconds and 4 git commands to generate.