Re: [PATCH] mtd: spi-nor: swp: check SR_TB flag when getting tb_mask

From: Miquel Raynal

Date: Wed Jan 28 2026 - 09:17:34 EST


On 28/01/2026 at 20:42:56 +08, Shiji Yang <yangshiji66@xxxxxxxxxxx> 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@xxxxxxxxxxx>

Good point.

Reviewed-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>

Thanks,
Miquèl