[Q] What is struct mtd_partition.ecclayout & who uses it?
Brian Foster
brian.foster at maximintegrated.com
Wed Oct 7 06:11:07 PDT 2015
In `struct mtd_partition' there is an undocumented field
`.ecclayout' which (modulo a name/type change) has existed since
Linus's original GIT commit 1da177e4c3f4 ("Linux-2.6.12-rc2").
However, with one trivial exception, I can_NOT_ find any users
of this field. The exception is it is initialized to NULL in
mtd_add_partition().
Indeed, a trial build (of v3.10 for my system) with that field
and its one known usage /*commented-out*/ succeeded, proving
that *IF* it is used at all, it's probably by some specific
NAND(-controller?) driver(s?).
Any idea which one(s?)?
Offhand, this looks like a long-dead something, with the only
clew being the comment (in <linux/mtd/partitions.h>):
/* out of band layout for this partition (NAND only) */
cheers!
-blf-
--
Brian Foster
Principal MTS, Software | La Ciotat, France
Maxim Integrated | http://www.maximintegrated.com/
More information about the linux-mtd
mailing list