Hi Matthias, On Tue, Nov 20, 2018 at 10:40:34AM +0100, matthias.schiffer@xxxxxxxxxxxxxxx wrote: > From: Matthias Schiffer <matthias.schiffer@xxxxxxxxxxxxxxx> > > Devices like MRAM do not need to be erased; in fact, trying to do a partial > erase will fail with -EINVAL, as they don't have a proper erase block size > defined. Where does this -EINVAL come from? Wouldn't it be an option to check for the MTD_NO_ERASE flag mtd_op_erase() and return -EOPNOTSUPP there? Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox