mtd: nand: add ooblayout for old hamming layout
authorAlexander Couzens <lynxis@fe80.eu>
Tue, 2 May 2017 10:19:00 +0000 (12:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 13:44:48 +0000 (15:44 +0200)
commit5956b2815f90e0749d98ea0baedc49b1792f598b
tree99a25b587bf888b8e9f33d60e5b773b0b7528e4d
parent6639b27f5a4c5425a46b2f1039d390dd1ad7b94f
mtd: nand: add ooblayout for old hamming layout

commit 6a623e07694437ad09f382a13f76cffc32239a7f upstream.

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")
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/nand_base.c