]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:46:29 +0000 (15:46 +0200)
commit9c92bffbd8eba7dce1d30734ce02bac8bf7357b0
tree7de556bc64a7789dc6c5ceabbe189fc596acd7a1
parent2d3e8503734ac2d7ed780b250d86d046d9459659
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