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

Michael Walle mwalle at kernel.org
Mon Feb 9 02:31:25 PST 2026


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 at outlook.com>

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 at kernel.org>

-michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 297 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20260209/82334ac9/attachment.sig>


More information about the linux-mtd mailing list