diff options
author | Angelo Dureghello <[email protected]> | 2019-10-30 12:39:57 +0100 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2019-11-14 10:58:03 +0100 |
commit | 14f89e088155314d311e4d4dd9f2b4ccaeef92b2 (patch) | |
tree | 92325229724050c5c0075b0c85a5f64335c20413 /scripts/gdb/linux/utils.py | |
parent | c2d73ba892eac0275b0d2bd7fae8dd4591a05da9 (diff) |
mtd: devices: fix mchp23k256 read and write
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: 4379075a870b ("mtd: mchp23k256: Add support for mchp23lcv1024")
Signed-off-by: Angelo Dureghello <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions