]> git.baikalelectronics.ru Git - kernel.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)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 3 May 2017 01:56:39 +0000 (18:56 -0700)
commit197fdccc81773d5b1afb95d6dcae9970ca9bb3b0
treeb189b4914fdc96540f99082f04ba9e94c3689e40
parent59d774acd386fa87845002ed250b0f8305c0a19f
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: 8a5e0759288a ("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