[PATCH 1/2] mtd: nand: denali: Avoid using ecc->code_buf as a temporary buffer
Masahiro Yamada
yamada.masahiro at socionext.com
Tue Dec 5 04:37:45 PST 2017
2017-12-05 20:09 GMT+09:00 Boris Brezillon <boris.brezillon at free-electrons.com>:
> ECC bytes are contiguous in the ->oob_poi buffer, which means we don't
> have to copy them into the ->code_buf (here used as a temporary buffer)
> before passing them to the nand_check_erased_ecc_chunk() function.
>
> This change will allow us to allocate ecc->{code,calc}_buf only when
> ecc->calculate() or ecc->correct() is specified.
>
> Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
Acked-by: Masahiro Yamada <yamada.masahiro at socionext.com>
Thanks!
--
Best Regards
Masahiro Yamada
More information about the linux-mtd
mailing list