diff options
author | Stijn Segers <francesco.borromini@inventati.org> | 2016-11-01 12:21:15 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-11-02 10:25:44 +0100 |
commit | 2f2ea7b44c6affb24426759b93d45d0aa26a74d5 (patch) | |
tree | 1bc9b86fd9b7cabf56a53b816615d20748073648 /target/linux/layerscape/patches-4.4/1093-mtd-spi-nor-check-return-value-from-read-write.patch | |
parent | eefe07ef4dccfb5463be9350239a89731ba46a3c (diff) | |
download | mtk-20170518-2f2ea7b44c6affb24426759b93d45d0aa26a74d5.zip mtk-20170518-2f2ea7b44c6affb24426759b93d45d0aa26a74d5.tar.gz mtk-20170518-2f2ea7b44c6affb24426759b93d45d0aa26a74d5.tar.bz2 |
kernel: update kernel 4.4 to version 4.4.30
This patch bumps the 4.4 kernel from .28 to .30 and refreshes the patches.
Compile-tested on ar71xx, x86/64, ramips/mt7621, brcm47xx and kirkwood.
Run-tested on ar71xx & ramips/mt7621, brcm47xx and kirkwood (last two confirmed
by P. Wassi).
Signed-off-by: Stijn Segers <francesco.borromini@inventati.org>
Diffstat (limited to 'target/linux/layerscape/patches-4.4/1093-mtd-spi-nor-check-return-value-from-read-write.patch')
-rw-r--r-- | target/linux/layerscape/patches-4.4/1093-mtd-spi-nor-check-return-value-from-read-write.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/layerscape/patches-4.4/1093-mtd-spi-nor-check-return-value-from-read-write.patch b/target/linux/layerscape/patches-4.4/1093-mtd-spi-nor-check-return-value-from-read-write.patch index 0721a06..79c71b2 100644 --- a/target/linux/layerscape/patches-4.4/1093-mtd-spi-nor-check-return-value-from-read-write.patch +++ b/target/linux/layerscape/patches-4.4/1093-mtd-spi-nor-check-return-value-from-read-write.patch @@ -14,7 +14,7 @@ Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@freescale.com> --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c -@@ -922,7 +922,10 @@ static int spi_nor_read(struct mtd_info +@@ -923,7 +923,10 @@ static int spi_nor_read(struct mtd_info ret = nor->read(nor, from, len, retlen, buf); spi_nor_unlock_and_unprep(nor, SPI_NOR_OPS_READ); @@ -26,7 +26,7 @@ Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@freescale.com> } static int sst_write(struct mtd_info *mtd, loff_t to, size_t len, -@@ -948,10 +951,14 @@ static int sst_write(struct mtd_info *mt +@@ -949,10 +952,14 @@ static int sst_write(struct mtd_info *mt nor->program_opcode = SPINOR_OP_BP; /* write one byte. */ @@ -43,7 +43,7 @@ Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@freescale.com> } to += actual; -@@ -960,10 +967,14 @@ static int sst_write(struct mtd_info *mt +@@ -961,10 +968,14 @@ static int sst_write(struct mtd_info *mt nor->program_opcode = SPINOR_OP_AAI_WP; /* write two bytes. */ @@ -60,7 +60,7 @@ Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@freescale.com> to += 2; nor->sst_write_second = true; } -@@ -972,21 +983,24 @@ static int sst_write(struct mtd_info *mt +@@ -973,21 +984,24 @@ static int sst_write(struct mtd_info *mt write_disable(nor); ret = spi_nor_wait_till_ready(nor); if (ret) @@ -90,7 +90,7 @@ Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@freescale.com> spi_nor_unlock_and_unprep(nor, SPI_NOR_OPS_WRITE); return ret; } -@@ -1015,14 +1029,18 @@ static int spi_nor_write(struct mtd_info +@@ -1016,14 +1030,18 @@ static int spi_nor_write(struct mtd_info /* do all the bytes fit onto one page? */ if (page_offset + len <= nor->page_size) { @@ -112,7 +112,7 @@ Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@freescale.com> page_size = len - i; if (page_size > nor->page_size) page_size = nor->page_size; -@@ -1033,7 +1051,11 @@ static int spi_nor_write(struct mtd_info +@@ -1034,7 +1052,11 @@ static int spi_nor_write(struct mtd_info write_enable(nor); |