[PATCH v2 0/3] mtd: spi-nor: winbond: Fix protection handling
Pratyush Yadav
pratyush at kernel.org
Mon Mar 30 07:10:59 PDT 2026
On Wed, Feb 18 2026, Eliav Farber wrote:
> This series fixes block protection handling for the following Winbond
> SPI-NOR devices:
> - w25q256jwm
> - w25q256jw
> - w25q64jvm
>
> The devices do not correctly describe their Status Register layout and
> protection capabilities (locking flags, TB bit, BP bit configuration).
> As a result, the spi-nor core rejects protection requests and locking
> operations fail with -EINVAL, e.g.:
>
> flash_lock -l /dev/mtd29
> flash_lock: error!: could not lock device: /dev/mtd29
> error 22 (Invalid argument)
>
> Update the device flags to match the actual hardware behavior so that
> locking and unlocking regions work correctly.
>
> All changes were validated using flash_lock on the affected devices.
Applied patches 1 and 3 to spi-nor/next. Thanks!
Skipped patch 2 since you say that you haven't got a device to test
with. I don't have a very strong opinion on this, but I do think we
should test patches on real hardware just to we get some sanity checking
for the patch.
[...]
--
Regards,
Pratyush Yadav
More information about the linux-mtd
mailing list