diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-11-24 18:59:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-11-24 18:59:28 +0000 |
commit | bb1c915f1e2006ea62f7c9136b18e2491c4303e2 (patch) | |
tree | 59846f1613df179154ecb266961e3811b373ccba /target/linux/brcm63xx/patches-4.1/203-MTD-DEVICES-m25p80-add-support-for-limiting-reads.patch | |
parent | 18691109df5a590e9914ae73740f145beec847ce (diff) | |
download | upstream-bb1c915f1e2006ea62f7c9136b18e2491c4303e2.tar.gz upstream-bb1c915f1e2006ea62f7c9136b18e2491c4303e2.tar.bz2 upstream-bb1c915f1e2006ea62f7c9136b18e2491c4303e2.zip |
kernel: update m25p80 in 4.1 to the latest version from 4.4-rc1
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 47624
Diffstat (limited to 'target/linux/brcm63xx/patches-4.1/203-MTD-DEVICES-m25p80-add-support-for-limiting-reads.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-4.1/203-MTD-DEVICES-m25p80-add-support-for-limiting-reads.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/brcm63xx/patches-4.1/203-MTD-DEVICES-m25p80-add-support-for-limiting-reads.patch b/target/linux/brcm63xx/patches-4.1/203-MTD-DEVICES-m25p80-add-support-for-limiting-reads.patch index fb064b890e..3877442d21 100644 --- a/target/linux/brcm63xx/patches-4.1/203-MTD-DEVICES-m25p80-add-support-for-limiting-reads.patch +++ b/target/linux/brcm63xx/patches-4.1/203-MTD-DEVICES-m25p80-add-support-for-limiting-reads.patch @@ -11,15 +11,15 @@ Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c -@@ -32,6 +32,7 @@ struct m25p { +@@ -31,6 +31,7 @@ + struct m25p { struct spi_device *spi; struct spi_nor spi_nor; - struct mtd_info mtd; + int max_transfer_len; u8 command[MAX_CMD_SIZE]; }; -@@ -121,7 +122,7 @@ static inline unsigned int m25p80_rx_nbi +@@ -119,7 +120,7 @@ static inline unsigned int m25p80_rx_nbi * Read an address range from the nor chip. The address range * may be any size provided it is within the physical boundaries. */ @@ -28,7 +28,7 @@ Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> size_t *retlen, u_char *buf) { struct m25p *flash = nor->priv; -@@ -154,6 +155,29 @@ static int m25p80_read(struct spi_nor *n +@@ -152,6 +153,29 @@ static int m25p80_read(struct spi_nor *n return 0; } @@ -58,7 +58,7 @@ Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> static int m25p80_erase(struct spi_nor *nor, loff_t offset) { struct m25p *flash = nor->priv; -@@ -228,6 +252,9 @@ static int m25p_probe(struct spi_device +@@ -223,6 +247,9 @@ static int m25p_probe(struct spi_device else flash_name = spi->modalias; |