linux/drivers/mtd/devices
Angelo Dureghello acc5e1a86a mtd: devices: fix mchp23k256 read and write
commit 14f89e0881 upstream.

Due to the use of sizeof(), command size set for the spi transfer
was wrong. Driver was sending and receiving always 1 byte less
and especially on write, it was hanging.

echo -n -e "\\x1\\x2\\x3\\x4" > /dev/mtd1

And read part too now works as expected.

hexdump -C -n16 /dev/mtd1
00000000  01 02 03 04 ab f3 ad c2  ab e3 f4 36 dd 38 04 15
00000010

Fixes: 4379075a87 ("mtd: mchp23k256: Add support for mchp23lcv1024")
Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-23 08:22:57 +01:00
..
Kconfig
Makefile
bcm47xxsflash.c
bcm47xxsflash.h
block2mtd.c
docg3.c
docg3.h
lart.c
mchp23k256.c mtd: devices: fix mchp23k256 read and write 2020-01-23 08:22:57 +01:00
ms02-nv.c
ms02-nv.h
mtd_dataflash.c
mtdram.c
phram.c mtd: phram: Module parameters add writable permissions 2019-09-15 23:50:38 +02:00
pmc551.c mtd: pmc551: Remove set but not used variable 'soff_lo' 2019-09-15 23:51:07 +02:00
powernv_flash.c
serial_flash_cmds.h
slram.c
spear_smi.c mtd: spear_smi: Fix Write Burst mode 2019-12-17 19:55:53 +01:00
sst25l.c
st_spi_fsm.c