X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fpatches-3.14%2F0044-mtd-add-chunked-read-io-to-m25p80.patch;h=6aee4ad2ab1e6219f1b2d3fd42f7ca4dad86bbf0;hp=4031335b229385354bd48b45bdd83ccc353951c7;hb=7c292fb3a0895f27b35055cfcd073385598c0614;hpb=e5220f44038170b9a40308c8c0cd87605ef998dd diff --git a/target/linux/ramips/patches-3.14/0044-mtd-add-chunked-read-io-to-m25p80.patch b/target/linux/ramips/patches-3.14/0044-mtd-add-chunked-read-io-to-m25p80.patch index 4031335b22..6aee4ad2ab 100644 --- a/target/linux/ramips/patches-3.14/0044-mtd-add-chunked-read-io-to-m25p80.patch +++ b/target/linux/ramips/patches-3.14/0044-mtd-add-chunked-read-io-to-m25p80.patch @@ -109,7 +109,7 @@ Signed-off-by: Felix Fietkau /* * Write an address range to the flash chip. Data must be written in * FLASH_PAGESIZE chunks. The address range may be any size provided -@@ -596,11 +680,8 @@ static int m25p80_write(struct mtd_info +@@ -596,11 +680,8 @@ static int m25p80_write(struct mtd_info return 1; } @@ -121,7 +121,7 @@ Signed-off-by: Felix Fietkau page_offset = to & (flash->page_size - 1); -@@ -608,9 +689,7 @@ static int m25p80_write(struct mtd_info +@@ -608,9 +689,7 @@ static int m25p80_write(struct mtd_info if (page_offset + len <= flash->page_size) { t[1].len = len; @@ -132,7 +132,7 @@ Signed-off-by: Felix Fietkau } else { u32 i; -@@ -618,9 +697,7 @@ static int m25p80_write(struct mtd_info +@@ -618,9 +697,7 @@ static int m25p80_write(struct mtd_info page_size = flash->page_size - page_offset; t[1].len = page_size; @@ -143,7 +143,7 @@ Signed-off-by: Felix Fietkau /* write everything in flash->page_size chunks */ for (i = page_size; i < len; i += page_size) { -@@ -628,19 +705,12 @@ static int m25p80_write(struct mtd_info +@@ -628,19 +705,12 @@ static int m25p80_write(struct mtd_info if (page_size > flash->page_size) page_size = flash->page_size; @@ -164,7 +164,7 @@ Signed-off-by: Felix Fietkau } } -@@ -1105,6 +1175,7 @@ static int m25p_probe(struct spi_device +@@ -1105,6 +1175,7 @@ static int m25p_probe(struct spi_device struct mtd_part_parser_data ppdata; struct device_node *np = spi->dev.of_node; int ret; @@ -172,7 +172,7 @@ Signed-off-by: Felix Fietkau /* Platform data helps sort out which chip type we have, as * well as how this board partitions it. If we don't have -@@ -1187,6 +1258,12 @@ static int m25p_probe(struct spi_device +@@ -1187,6 +1258,12 @@ static int m25p_probe(struct spi_device flash->mtd._erase = m25p80_erase; flash->mtd._read = m25p80_read;