diff options
| author | Nikita Kiryanov <[email protected]> | 2013-12-12 15:19:31 +0200 |
|---|---|---|
| committer | Scott Wood <[email protected]> | 2013-12-17 17:41:25 -0600 |
| commit | 2528460c38dfaffe7ae430244d1fa119087c1b01 (patch) | |
| tree | 96b4ebc087077dc0eb8309cbfb688960d0b7a507 /include/linux/string.h | |
| parent | 5d7a49b930156514ce9d418e26b5bf21673fd399 (diff) | |
mtd: nand: omap: fix HAM1_SW ecc using default value for ecc.size
Commit "mtd: nand: omap: enable BCH ECC scheme using ELM for generic
platform" (d016dc42cedbf6102e100fa9ecb58462edfb14f8) changed the way
software ECC is configured, both during boot, and during ecc switch, in a way
that is not backwards compatible with older systems:
Older version of omap_gpmc.c always assigned ecc.size = 0 when configuring
for software ecc, relying on nand_scan_tail() to select a default for ecc.size
(256), while the new version of omap_gpmc.c assigns ecc.size = pagesize,
which is likely to not be 256.
Since 1 bit hamming sw ecc is only meant to be used by legacy devices, revert
to the original behavior.
Cc: Igor Grinberg <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Scott Wood <[email protected]>
Cc: Pekon Gupta <[email protected]>
Signed-off-by: Nikita Kiryanov <[email protected]>
Acked-by: Pekon Gupta <[email protected]>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions
