Hi, On Mon Sep 14, 2026 at 3:42 PM CEST, Nuno Sá wrote: > (*): I should note that the command actually failed with -EIO but it > actually unlocked the chip! And the reason is because the flash as the same > FSR register than the micron-st flash. So WEL is set to 1 but can only > be cleared when clearing the FSR register. Why doesn't this affect only the locking operation? WEL polling is used also during write and erase. > AFAICT, we should do something similar as micron so the writing to an > actual protected region fails rather than being silently discarded with > that status bit set. The question would be how to do it? The code is > pretty much identical to [1]. The masks, the opcoded... So should we > somehow handle this in the core (by having some common helper) that > could be set in .late_init() under a common MFR_FSR flag? Or just keep > both implementations separate for now? I'd like to keep that out of the core.c, but also like to avoid any code duplication esp. because there is already handling for the intel spi controller in there. So maybe move it it into a new common.c. Apart from that, this patch set looks good to go. -michael > [1]: https://elixir.bootlin.com/linux/v7.2.5/source/drivers/mtd/spi-nor/micron-st.c#L585