[PATCH] libmtd: allow write operations when MEMWRITE is not supported
Artem Bityutskiy
dedekind1 at gmail.com
Sat Dec 17 09:44:42 EST 2011
On Mon, 2011-12-12 at 13:40 -0800, Brian Norris wrote:
> On Mon, Dec 12, 2011 at 1:26 PM, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> > On Fri, 2011-12-09 at 11:45 -0800, Brian Norris wrote:
> >> MEMWRITE is a recently introduced write interface for MTD; however, it
> >> is, for now, only supported on NAND flash. mtd-utils should fall back to
> >> old write methods when either ENOTTY or EOPNOTSUPP are returned.
> >>
> >> This is a showstopper when, for instance, using ubiformat on NOR, which
> >> don't have a mtd->write_oob interface (and thus don't support MEMWRITE):
> >>
> >> ubiformat: formatting eraseblock 2 -- 1 % complete libmtd: error!: MEMWRITE ioctl failed for eraseblock 2 (mtd3)
> >> error 122 (Operation not supported)
> >>
> >> Signed-off-by: Brian Norris <computersforpeace at gmail.com>
> >
> > I guess this require an urgent mtd-utils release.
OK, I've cut mtd-utils-1.4.9 bug-fix release, this time with my
new script, so I hope nothing is forgotten.
Peter, please, update - this release fixes a bad bug which breaks NOR
erase operation in not-yet-released 3.2 kernel.
--
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20111217/b5ad8e9e/attachment.sig>
More information about the linux-mtd
mailing list