[PATCH] mtd: expose ooblayout information via sysfs
Miquel Raynal
miquel.raynal at bootlin.com
Tue Aug 5 23:57:11 PDT 2025
Hello Gabor,
On 19/07/2025 at 14:06:48 +02, Gabor Juhos <j4g8y7 at gmail.com> wrote:
> Add two new sysfs device attributes which allows to determine the OOB
> layout used by a given MTD device. This can be useful to verify the
> current layout during driver development without adding extra debug
> code. The exposed information also makes it easier to analyze NAND
> dumps without the need of cravling out the layout from the driver
> code.
I would prefer a debugfs entry, as this is mostly focusing on
development and debugging purposes. sysfs has a stable API, which makes
it a less relevant place in this case.
Thanks,
Miquèl
More information about the linux-mtd
mailing list