[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNARAURP5-vbFZUUo1Wm9hudHw5DTuaQHz-TJGjdsXij38g@mail.gmail.com>
Date: Tue, 28 Feb 2017 16:21:50 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Boris Brezillon <boris.brezillon@...e-electrons.com>,
linux-mtd@...ts.infradead.org
Cc: masahiroy@...nel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [NAND Question] When oob_required is used?
Hi.
I am seeing the reference implementations for the callback
in drivers/mtd/nand/nand_base.c
I see only some of them use the argument "oob_required".
- oob_required is used
nand_read_page_raw()
nand_write_page_raw()
nand_write_subpage_hwecc()
- oob_required is ignored
nand_read_page_raw_syndrome()
nand_read_page_swecc()
nand_read_page_hwecc()
nand_read_page_hwecc_oob_first()
nand_read_page_syndrome()
nand_write_page_raw_syndrome()
nand_write_page_swecc()
nand_write_page_hwecc()
nand_write_page_syndrome()
I could not get the logic
when "oob_required" is used.
When implementing drivers, the "oob_required"
should be respected (i.e. oob_poi should be transferred as well),
or is it OK to ignore it?
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists