Files
linux/drivers
Angelo Dureghello 5bebd8dbc5 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:21:37 +01:00
..
2020-01-09 10:19:01 +01:00
2019-12-31 16:35:58 +01:00
2019-05-14 19:17:53 +02:00
2020-01-23 08:21:34 +01:00
2019-12-05 09:21:29 +01:00
2019-07-26 09:14:05 +02:00
2018-12-21 14:15:17 +01:00
2020-01-23 08:21:28 +01:00
2018-11-13 11:08:51 -08:00
2019-12-17 20:35:17 +01:00