kernel: allow adding devices without hw offload to a hw flowtable
[openwrt/openwrt.git] / target / linux / generic / pending-6.1 / 465-m25p80-mx-disable-software-protection.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Subject: Disable software protection bits for Macronix flashes.
3
4 Signed-off-by: Felix Fietkau <nbd@nbd.name>
5 ---
6 drivers/mtd/spi-nor/spi-nor.c | 1 +
7 1 file changed, 1 insertion(+)
8
9 --- a/drivers/mtd/spi-nor/macronix.c
10 +++ b/drivers/mtd/spi-nor/macronix.c
11 @@ -106,6 +106,7 @@ static void macronix_nor_default_init(st
12 {
13 nor->params->quad_enable = spi_nor_sr1_bit6_quad_enable;
14 nor->params->set_4byte_addr_mode = spi_nor_set_4byte_addr_mode;
15 + nor->flags |= SNOR_F_HAS_LOCK;
16 }
17
18 static const struct spi_nor_fixups macronix_nor_fixups = {