aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.7/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-07-20 07:37:27 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-07-20 07:37:27 +0000
commita9de3a851a83d43f487f9ced2cf0326047aabc5a (patch)
tree28e438eefb45df17a28d3d862e9d53c1afcc0a16 /target/linux/generic/patches-3.7/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch
parentc8933c968f6f885fe987fe17babdd833a81124a1 (diff)
downloadupstream-a9de3a851a83d43f487f9ced2cf0326047aabc5a.tar.gz
upstream-a9de3a851a83d43f487f9ced2cf0326047aabc5a.tar.bz2
upstream-a9de3a851a83d43f487f9ced2cf0326047aabc5a.zip
linux: remove 3.7 support
It is not used by any target. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37469
Diffstat (limited to 'target/linux/generic/patches-3.7/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch')
-rw-r--r--target/linux/generic/patches-3.7/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/target/linux/generic/patches-3.7/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch b/target/linux/generic/patches-3.7/476-mtd-m25p80-allow-to-disable-small-sector-erase.patch
deleted file mode 100644
index d720b69328..0000000000
--- a/target/linux/generic/patches-3.7/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
-@@ -84,6 +84,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 {
-@@ -916,7 +922,7 @@ static int __devinit m25p_probe(struct s
- 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) {