]> 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)
commit96e93c1933b2bccac78f84bef26a41e9c3e9572a
treeb189b4914fdc96540f99082f04ba9e94c3689e40
parentd03f6a2d89f4598617a3e3740378371e227c8a95
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: 4d04f724ce5b ("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