]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: sunxi: implement ->read_oob()/->write_oob()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 2 Sep 2015 13:05:52 +0000 (15:05 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:39 +0000 (22:05 +0200)
commit11d5dd9e0599975ce0a37632c18164701941ce0a
treebf0680c61b0aaa69f5aa296be3fd7f4f4caa886d
parentc025eb1861f3953d88d4b0db4e94917de72f4344
mtd: nand: sunxi: implement ->read_oob()/->write_oob()

Allwinner's ECC engine is capable of protecting a few bytes of the OOB
area. Implement specific OOB functions to benefit from this capability.

Also, when in raw mode, the randomizer is disabled, which means you'll
only be able to retrieve randomized data, which is not really useful
for most applications.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/sunxi_nand.c