mediatek: fix PWM fan on BPi-R4
[openwrt/openwrt.git] / target / linux / generic / pending-6.6 / 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 @@ -114,6 +114,7 @@ static int macronix_nor_late_init(struct
12 {
13 if (!nor->params->set_4byte_addr_mode)
14 nor->params->set_4byte_addr_mode = spi_nor_set_4byte_addr_mode_en4b_ex4b;
15 + nor->flags |= SNOR_F_HAS_LOCK;
16
17 return 0;
18 }