mtd: nand: add ooblayout for old hamming layout
authorAlexander Couzens <lynxis@fe80.eu>
Tue, 2 May 2017 10:19:00 +0000 (12:19 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 3 May 2017 01:56:39 +0000 (18:56 -0700)
commit6a623e07694437ad09f382a13f76cffc32239a7f
treeb189b4914fdc96540f99082f04ba9e94c3689e40
parentb98e1995e4fa9030474a61ed0dbc033464fe5ea0
mtd: nand: add ooblayout for old hamming layout

The old 1-bit hamming layout requires ECC data to be placed at a
fixed offset, and not necessarily at the end of the OOB area.
Add this old layout back in order to fix legacy setups.

Fixes: 41b207a70d3a ("mtd: nand: implement the default mtd_ooblayout_ops")
Cc: <stable@vger.kernel.org>
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_base.c