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

From: Miquel Raynal

Date: Wed Nov 18 2026 - 09:24:50 EST



>> +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