]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: Support jffs2 flash-erase for large OOB (>32b)
authorManikandan Ramachandran <crmanik@gmail.com>
Thu, 6 Aug 2015 18:38:14 +0000 (11:38 -0700)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Tue, 21 Feb 2017 10:34:05 +0000 (11:34 +0100)
commitd7e86124d55bbcee1b82c68b82389ebcda588076
tree2cd900df663de57d1cb4dbfe182ab04bdd3228c9
parentfc7aa01f07919155fc167846125bc8f7e965b89d
mtd-utils: Support jffs2 flash-erase for large OOB (>32b)

"flash_erase" fails on nand flash with JFFS2 that has OOB size greater than
32 bytes. "flash_erase" uses "MEMGETOOSEL" to determine OOB size. This ioctl
call is obsolete and returns error if OOB size is more than 32 bytes.

This patch fixes this issue by using "mtd_write" to update clean-marker
instead of mtd_oob_write. This fix is based on the discussion:
http://lists.infradead.org/pipermail/linux-mtd/2011-September/037958.html.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
misc-utils/flash_erase.c