public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [NAND Question] When oob_required is used?
@ 2017-02-28  7:21 Masahiro Yamada
  2017-02-28  8:02 ` Boris Brezillon
  0 siblings, 1 reply; 3+ messages in thread
From: Masahiro Yamada @ 2017-02-28  7:21 UTC (permalink / raw)
  To: Boris Brezillon, linux-mtd; +Cc: masahiroy, Linux Kernel Mailing List

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-28  8:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-28  7:21 [NAND Question] When oob_required is used? Masahiro Yamada
2017-02-28  8:02 ` Boris Brezillon
2017-02-28  8:26   ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox