diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2014-09-08 19:55:36 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2014-09-08 19:55:36 +0000 |
commit | b36f776369b11beba6711a014528a3fb62a2d887 (patch) | |
tree | 3fd4e9cde81de3736205474e7eddc43a2cd32a8a /target/linux/generic/patches-3.9/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch | |
parent | 2f47b07c14e4f9e6182a0943ccbc85a7c28997bd (diff) | |
download | master-187ad058-b36f776369b11beba6711a014528a3fb62a2d887.tar.gz master-187ad058-b36f776369b11beba6711a014528a3fb62a2d887.tar.bz2 master-187ad058-b36f776369b11beba6711a014528a3fb62a2d887.zip |
kernel: drop 3.9 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42452 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.9/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch')
-rw-r--r-- | target/linux/generic/patches-3.9/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/target/linux/generic/patches-3.9/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch b/target/linux/generic/patches-3.9/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch deleted file mode 100644 index f6de3f9372..0000000000 --- a/target/linux/generic/patches-3.9/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- a/drivers/mtd/devices/Kconfig -+++ b/drivers/mtd/devices/Kconfig -@@ -110,6 +110,14 @@ config MTD_SPEAR_SMI - help - This enable SNOR support on SPEAR platforms using SMI controller - -+config M25PXX_PREFER_SMALL_SECTOR_ERASE -+ bool "Prefer small sector erase" -+ depends on MTD_M25P80 -+ default y -+ help -+ This option enables use of the small erase sectors if that is -+ supported by the flash chip. -+ - config MTD_SST25L - tristate "Support SST25L (non JEDEC) SPI Flash chips" - depends on SPI_MASTER ---- a/drivers/mtd/devices/m25p80.c -+++ b/drivers/mtd/devices/m25p80.c -@@ -76,6 +76,12 @@ - - #define JEDEC_MFR(_jedec_id) ((_jedec_id) >> 16) - -+#ifdef CONFIG_M25PXX_PREFER_SMALL_SECTOR_ERASE -+#define PREFER_SMALL_SECTOR_ERASE 1 -+#else -+#define PREFER_SMALL_SECTOR_ERASE 0 -+#endif -+ - /****************************************************************************/ - - struct m25p { -@@ -1018,7 +1024,7 @@ static int m25p_probe(struct spi_device - flash->mtd._write = m25p80_write; - - /* prefer "small sector" erase if possible */ -- if (info->flags & SECT_4K) { -+ if (PREFER_SMALL_SECTOR_ERASE && (info->flags & SECT_4K)) { - flash->erase_opcode = OPCODE_BE_4K; - flash->mtd.erasesize = 4096; - } else if (info->flags & SECT_4K_PMC) { |