On Monday, March 23, 2020 11:30:44 PM EET Tudor Ambarus wrote: > > With this patch applied: > > > > # flash_lock -u /dev/mtd1 0 64 > > # cat > > /sys/devices/platform/soc/20c0000.spi/spi_master/spi0/spi0.0/status_reg > > 00 > > # flash_lock -l /dev/mtd1 0 1 > > flash_lock: error!: could not lock device: /dev/mtd1 > > > > error 22 (Invalid argument) > > I'm wondering what was the reason for the -EINVAL. Probably because the BP bits would have value zero. ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/