[PATCH] mtd: spi-nor: swp: check SR_TB flag when getting tb_mask
Miquel Raynal
miquel.raynal at bootlin.com
Wed Jan 28 06:11:17 PST 2026
On 28/01/2026 at 20:42:56 +08, Shiji Yang <yangshiji66 at outlook.com> wrote:
> When the chip does not support top/bottom block protect, the tb_mask
> must be set to 0, otherwise SR1 bit5 will be unexpectedly modified.
>
> Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
Good point.
Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>
Thanks,
Miquèl
More information about the linux-mtd
mailing list