On 17.03.2025 09:09, Michael Nazzareno Trimarchi wrote:
Hi Arseniy
On Sun, Dec 22, 2024 at 10:23?PM Arseniy Krasnov < avkrasnov@...> wrote:
If 'oob_required' is not set by the caller (for example 'oobbuf' is NULL), then driver doesn't copy OOB data from 'oob_poi' to special controller structures, so zeroes will be written as OOB. But, generic raw NAND logic in 'nand_base.c' already handles case when OOB is not required to write by filling 'oob_poi' with 0xFF's. So let's remove 'oob_required' check to always read 'oob_poi' data for OOB.
Kernel driver (drivers/mtd/nand/raw/meson_nand.c) works in the same way, so need to keep same behaviour here.