sunxi: add support for 4.1
[openwrt.git] / target / linux / sunxi / patches-4.1 / 118-mtd-nand-fix-NAND_options.patch
1 From f8ff99a839ed05e1e4993b543357183b095b77f1 Mon Sep 17 00:00:00 2001
2 From: Michal Suchanek <hramrach@gmail.com>
3 Date: Thu, 1 Jan 2015 16:44:45 +0100
4 Subject: [PATCH] mtd: nand: Fix NAND_* options to use unique values.
5
6 NAND_BUSWIDTH_AUTO (64b37b2a6) and NAND_USE_BOUNCE_BUFFER (66507c7bc)
7 are the same value. Change the later introduced NAND_USE_BOUNCE_BUFFER
8 to a different value.
9
10 Signed-off-by: Michal Suchanek <hramrach@gmail.com>
11 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 ---
13  include/linux/mtd/nand.h | 12 ++++++------
14  1 file changed, 6 insertions(+), 6 deletions(-)
15
16 diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
17 index 328aab2..c20f35b 100644
18 --- a/include/linux/mtd/nand.h
19 +++ b/include/linux/mtd/nand.h
20 @@ -176,17 +176,17 @@ typedef enum {
21  /* Chip may not exist, so silence any errors in scan */
22  #define NAND_SCAN_SILENT_NODEV 0x00040000
23  /*
24 - * This option could be defined by controller drivers to protect against
25 - * kmap'ed, vmalloc'ed highmem buffers being passed from upper layers
26 - */
27 -#define NAND_USE_BOUNCE_BUFFER 0x00080000
28 -/*
29   * Autodetect nand buswidth with readid/onfi.
30   * This suppose the driver will configure the hardware in 8 bits mode
31   * when calling nand_scan_ident, and update its configuration
32   * before calling nand_scan_tail.
33   */
34 -#define NAND_BUSWIDTH_AUTO      0x00080000
35 +#define NAND_BUSWIDTH_AUTO     0x00080000
36 +/*
37 + * This option could be defined by controller drivers to protect against
38 + * kmap'ed, vmalloc'ed highmem buffers being passed from upper layers
39 + */
40 +#define NAND_USE_BOUNCE_BUFFER 0x00100000
41  
42  /* Options set by nand scan */
43  /* Nand scan has allocated controller struct */