kernel: use .patch extension for all patches
authorStijn Tintel <stijn@linux-ipv6.be>
Tue, 27 Jun 2017 04:37:46 +0000 (06:37 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Tue, 27 Jun 2017 04:37:46 +0000 (06:37 +0200)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
target/linux/gemini/patches-4.4/060-cache-fa.diff [deleted file]
target/linux/gemini/patches-4.4/060-cache-fa.patch [new file with mode: 0644]
target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-Spansion_S25FL164K [deleted file]
target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-Spansion_S25FL164K.patch [new file with mode: 0644]

diff --git a/target/linux/gemini/patches-4.4/060-cache-fa.diff b/target/linux/gemini/patches-4.4/060-cache-fa.diff
deleted file mode 100644 (file)
index fc74c0a..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
---- a/arch/arm/mm/cache-fa.S
-+++ b/arch/arm/mm/cache-fa.S
-@@ -24,7 +24,8 @@
- /*
-  * The size of one data cache line.
-  */
--#define CACHE_DLINESIZE       16
-+#define CACHE_DLINESIZE               16
-+#define CACHE_DLINESHIFT      4
- /*
-  * The total size of the data cache.
-@@ -169,7 +170,17 @@ ENTRY(fa_flush_kern_dcache_area)
-  *    - start  - virtual start address
-  *    - end    - virtual end address
-  */
-+__flush_whole_dcache:
-+      mcr     p15, 0, r0, c7, c14, 0          @ clean/invalidate D cache
-+      mov     r0, #0
-+      mcr     p15, 0, r0, c7, c10, 4          @ drain write buffer
-+      mov     pc, lr
-+
- fa_dma_inv_range:
-+      sub     r3, r1, r0                      @ calculate total size
-+      cmp     r3, #CACHE_DLIMIT               @ total size >= limit?
-+      bhs     __flush_whole_dcache            @ flush whole D cache
-+
-       tst     r0, #CACHE_DLINESIZE - 1
-       bic     r0, r0, #CACHE_DLINESIZE - 1
-       mcrne   p15, 0, r0, c7, c14, 1          @ clean & invalidate D entry
-@@ -193,6 +204,10 @@ fa_dma_inv_range:
-  *    - end    - virtual end address
-  */
- fa_dma_clean_range:
-+      sub     r3, r1, r0                      @ calculate total size
-+      cmp     r3, #CACHE_DLIMIT               @ total size >= limit?
-+      bhs     __flush_whole_dcache            @ flush whole D cache
-+
-       bic     r0, r0, #CACHE_DLINESIZE - 1
- 1:    mcr     p15, 0, r0, c7, c10, 1          @ clean D entry
-       add     r0, r0, #CACHE_DLINESIZE
diff --git a/target/linux/gemini/patches-4.4/060-cache-fa.patch b/target/linux/gemini/patches-4.4/060-cache-fa.patch
new file mode 100644 (file)
index 0000000..fc74c0a
--- /dev/null
@@ -0,0 +1,41 @@
+--- a/arch/arm/mm/cache-fa.S
++++ b/arch/arm/mm/cache-fa.S
+@@ -24,7 +24,8 @@
+ /*
+  * The size of one data cache line.
+  */
+-#define CACHE_DLINESIZE       16
++#define CACHE_DLINESIZE               16
++#define CACHE_DLINESHIFT      4
+ /*
+  * The total size of the data cache.
+@@ -169,7 +170,17 @@ ENTRY(fa_flush_kern_dcache_area)
+  *    - start  - virtual start address
+  *    - end    - virtual end address
+  */
++__flush_whole_dcache:
++      mcr     p15, 0, r0, c7, c14, 0          @ clean/invalidate D cache
++      mov     r0, #0
++      mcr     p15, 0, r0, c7, c10, 4          @ drain write buffer
++      mov     pc, lr
++
+ fa_dma_inv_range:
++      sub     r3, r1, r0                      @ calculate total size
++      cmp     r3, #CACHE_DLIMIT               @ total size >= limit?
++      bhs     __flush_whole_dcache            @ flush whole D cache
++
+       tst     r0, #CACHE_DLINESIZE - 1
+       bic     r0, r0, #CACHE_DLINESIZE - 1
+       mcrne   p15, 0, r0, c7, c14, 1          @ clean & invalidate D entry
+@@ -193,6 +204,10 @@ fa_dma_inv_range:
+  *    - end    - virtual end address
+  */
+ fa_dma_clean_range:
++      sub     r3, r1, r0                      @ calculate total size
++      cmp     r3, #CACHE_DLIMIT               @ total size >= limit?
++      bhs     __flush_whole_dcache            @ flush whole D cache
++
+       bic     r0, r0, #CACHE_DLINESIZE - 1
+ 1:    mcr     p15, 0, r0, c7, c10, 1          @ clean D entry
+       add     r0, r0, #CACHE_DLINESIZE
diff --git a/target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-Spansion_S25FL164K b/target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-Spansion_S25FL164K
deleted file mode 100644 (file)
index 24aa075..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/drivers/mtd/spi-nor/spi-nor.c
-+++ b/drivers/mtd/spi-nor/spi-nor.c
-@@ -567,6 +567,7 @@ static const struct spi_device_id spi_no
-       { "s25fl008k",  INFO(0xef4014,      0,  64 * 1024,  16, SECT_4K) },
-       { "s25fl016k",  INFO(0xef4015,      0,  64 * 1024,  32, SECT_4K) },
-       { "s25fl064k",  INFO(0xef4017,      0,  64 * 1024, 128, SECT_4K) },
-+      { "s25fl164k",  INFO(0x014017,      0,  64 * 1024, 128, SECT_4K) },
-       /* SST -- large erase sizes are "overlays", "sectors" are 4K */
-       { "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024,  8, SECT_4K | SST_WRITE) },
diff --git a/target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-Spansion_S25FL164K.patch b/target/linux/generic/patches-3.18/091-mtd-spi-nor-add-support-Spansion_S25FL164K.patch
new file mode 100644 (file)
index 0000000..24aa075
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/spi-nor/spi-nor.c
++++ b/drivers/mtd/spi-nor/spi-nor.c
+@@ -567,6 +567,7 @@ static const struct spi_device_id spi_no
+       { "s25fl008k",  INFO(0xef4014,      0,  64 * 1024,  16, SECT_4K) },
+       { "s25fl016k",  INFO(0xef4015,      0,  64 * 1024,  32, SECT_4K) },
+       { "s25fl064k",  INFO(0xef4017,      0,  64 * 1024, 128, SECT_4K) },
++      { "s25fl164k",  INFO(0x014017,      0,  64 * 1024, 128, SECT_4K) },
+       /* SST -- large erase sizes are "overlays", "sectors" are 4K */
+       { "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024,  8, SECT_4K | SST_WRITE) },