From: Jordan Friendshuh Date: Wed, 27 Aug 2014 17:45:36 +0000 (-0500) Subject: mtd: nand: Base BCH ECC bytes on required strength X-Git-Tag: omap-for-v3.19/fixes-rc1~56^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=438320dd34a4d0b2b177fbae749c3b9d00532faf;p=pandora-kernel.git 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 Signed-off-by: Aaron Sierra Signed-off-by: Brian Norris --- Reading git-diff-tree failed