diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-03-22 23:07:01 +0300 |
|---|---|---|
| committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-03-24 11:47:43 +0300 |
| commit | c120e75e0e7deff88119376298342df139b9b17c (patch) | |
| tree | 2124abb2038c31bec3857dadc616e333c1985707 /scripts/patch-kernel | |
| parent | 9fe4b66efb77fec71a9c11de58e5e51c5c826190 (diff) | |
| download | linux-c120e75e0e7deff88119376298342df139b9b17c.tar.xz | |
mtd: nand: use read_oob() instead of cmdfunc() for bad block check
The nand_default_block_markbad() and scan_block_fast() use high
level APIs to get access to the BBM.
On the other hand, nand_block_bad (the default implementation of
->block_bad) calls the lower level ->cmdfunc hook. This prevents
drivers from using ->ecc.read_oob() even if optimized read operation
is implemented. Besides, some NAND controllers may protect the BBM
with ECC.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
