[PATCH 1/2] mtd: nand: denali: Avoid using ecc->code_buf as a temporary buffer

Boris Brezillon boris.brezillon at free-electrons.com
Thu Dec 7 12:18:43 PST 2017


On Tue, 5 Dec 2017 21:37:45 +0900
Masahiro Yamada <yamada.masahiro at socionext.com> wrote:

> 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>

Applied those 2 patches.

Boris

> 
> Thanks!
> 
> 
> 
> 




More information about the linux-mtd mailing list