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

From: Michael Walle

Date: Mon Feb 09 2026 - 05:31:32 EST


On Wed Jan 28, 2026 at 1:42 PM CET, Shiji Yang 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>

It goes all the way back to the very first commit..

Fixes: 3dd8012a8eeb ("mtd: spi-nor: add TB (Top/Bottom) protect support")
Reviewed-by: Michael Walle <mwalle@xxxxxxxxxx>

-michael

Attachment: signature.asc
Description: PGP signature