From: Pekon Gupta Date: Thu, 20 Mar 2014 13:18:34 +0000 (+0530) Subject: mtd: devices: elm: check for hardware engine's design constraints X-Git-Tag: v3.15-rc1~65^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f4eb14bdbe148fcc3a8e02f506ccc9b8c955ad4;p=pandora-kernel.git mtd: devices: elm: check for hardware engine's design constraints ELM hardware engine is used by BCH ecc-schemes for detecting and locating ECC errors. This patch adds the following checks for ELM hardware engine: - ELM internal buffers are of 1K, so it cannot process data with ecc-step-size > 1K. - ELM engine can execute upto maximum of 8 threads in parallel, so in *page-mode* (when complete page is processed in single iteration), ELM cannot support ecc-steps > 8. Signed-off-by: Pekon Gupta Reviewed-by: Ezequiel Garcia Signed-off-by: Brian Norris --- Reading git-diff-tree failed