aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-4.9/0015-arch-mips-do-not-select-illegal-access-driver-by-def.patch
blob: 6f5a6f4b94b020f2c5ff15cace3db58d54337bfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 9e6ce539092a1dd605a20bf73c655a9de58d8641 Mon Sep 17 00:00:00 2001
From: John Crispin <blogic@openwrt.org>
Date: Mon, 7 Dec 2015 17:18:05 +0100
Subject: [PATCH 15/53] arch: mips: do not select illegal access driver by
 default

Signed-off-by: John Crispin <blogic@openwrt.org>
---
 arch/mips/ralink/Kconfig |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/arch/mips/ralink/Kconfig
+++ b/arch/mips/ralink/Kconfig
@@ -13,9 +13,9 @@ config CLKEVT_RT3352
 	select CEVT_SYSTICK_QUIRK
 
 config RALINK_ILL_ACC
-	bool
+	bool "illegal access irq"
 	depends on SOC_RT305X
-	default y
+	default n
 
 config IRQ_INTC
 	bool
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 @@ -90,6 +90,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 + /****************************************************************************/ enum read_type { @@ -1192,7 +1198,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) {