From f791fb4af45032a653ba7c850f4564923871cb16 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 27 Jan 2017 14:32:10 +0100 Subject: kernel: add linux 4.9 support Signed-off-by: Felix Fietkau Signed-off-by: Tim Harvey [fixes] --- .../479-enable_mtd_has_lock_for_f25l32pa.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 target/linux/generic/patches-4.9/479-enable_mtd_has_lock_for_f25l32pa.patch (limited to 'target/linux/generic/patches-4.9/479-enable_mtd_has_lock_for_f25l32pa.patch') diff --git a/target/linux/generic/patches-4.9/479-enable_mtd_has_lock_for_f25l32pa.patch b/target/linux/generic/patches-4.9/479-enable_mtd_has_lock_for_f25l32pa.patch new file mode 100644 index 0000000000..0bf20f3794 --- /dev/null +++ b/target/linux/generic/patches-4.9/479-enable_mtd_has_lock_for_f25l32pa.patch @@ -0,0 +1,22 @@ +mtd: spi-nor: Add lock/unlock support for f25l32pa + +This chip has write protection enabled on power-up, +so this flag is necessary to support write operations. + +Signed-off-by: Victor Shyba +Acked-by: Marek Vasut +--- + drivers/mtd/spi-nor/spi-nor.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/mtd/spi-nor/spi-nor.c ++++ b/drivers/mtd/spi-nor/spi-nor.c +@@ -821,7 +821,7 @@ static const struct flash_info spi_nor_i + { "en25s64", INFO(0x1c3817, 0, 64 * 1024, 128, SECT_4K) }, + + /* ESMT */ +- { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K) }, ++ { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_HAS_LOCK) }, + { "f25l32qa", INFO(0x8c4116, 0, 64 * 1024, 64, SECT_4K) }, + { "f25l64qa", INFO(0x8c4117, 0, 64 * 1024, 128, SECT_4K) }, + -- cgit v1.2.3