[PATCH] mtd: devices: fix mchp23k256 read and write
miquel.raynal at bootlin.com
Tue Nov 12 06:19:13 PST 2019
On Wed, 2019-10-30 at 11:39:57 UTC, Angelo Dureghello wrote:
> 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
> Signed-off-by: Angelo Dureghello <angelo.dureghello at timesys.com>
> Reviewed-by: Andrew Lunn <andrew at lunn.ch>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
More information about the linux-mtd