]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: Base BCH ECC bytes on required strength
authorJordan Friendshuh <jfriendshuh@xes-inc.com>
Wed, 27 Aug 2014 17:45:36 +0000 (12:45 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 5 Nov 2014 08:08:59 +0000 (00:08 -0800)
commit438320dd34a4d0b2b177fbae749c3b9d00532faf
treecb8404e21d7d422408074cf1ae9f0df1f83cc89f
parentc9d79c4bbb0e47a75f35652567b2647b99d6295e
mtd: nand: Base BCH ECC bytes on required strength

NAND devices with page sizes over 4 KiB require more than 4-bits of ECC
coverage. This patch calculates the value of ecc_bytes based on a still
assumed 512-byte step size (13-bits) and the ecc_strength.

Example:
Micron M73A devices (8 KiB page) require 8-bit ECC per 512-byte

Signed-off-by: Jordan Friendshuh <jfriendshuh@xes-inc.com>
Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_base.c