[PATCH v5] mtd: spi-nor: take the flash lock around spi_nor_restore()

Miquel Raynal miquel.raynal at bootlin.com
Wed Nov 18 06:23:09 PST 2026


>> +static void spi_nor_lock_and_restore(struct spi_nor *nor)
>> +{
>> +	int ret;
>> +
>> +	ret = spi_nor_prep_and_lock(nor);
>> +	if (ret == -ESHUTDOWN)
>
> This is actually really hard to follow.

Yes, I tried to review this patch and eventually stopped. Please teach
your AI to not overengineer its solutions.

Thanks,
Miquèl



More information about the linux-mtd mailing list