]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: sunxi: make OOB retrieval optional
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 4 Mar 2016 17:09:21 +0000 (18:09 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:46 +0000 (22:05 +0200)
commit047c9ce78ac11cc726d5855f399551bdf1ea8737
tree0513fc769d8357aea014e107da57cfc23877e11a
parent7eef008715f9e9ab7b9a0b29c6f996a700a58a26
mtd: nand: sunxi: make OOB retrieval optional

sunxi_nfc_hw_ecc_read_chunk() always retrieves the ECC and protected free
bytes, no matter if the user really asked for it or not. This can take a
non negligible amount of time, especially on NAND chips exposing large OOB
areas (> 1KB). Make it optional.

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