[PATCH] mtd: docg3 fix in-middle of blocks reads
David Woodhouse
dwmw2 at infradead.org
Tue May 15 11:04:21 EDT 2012
On Mon, 2012-04-09 at 13:19 +0200, Robert Jarzmik wrote:
>
> The reason seams that the first 111 bytes read ends between
> the 2 docg3 planes, and that the first following read (in
> the 12 bytes sequence, read of 16 bit word) returns the byte
> of the rightmost plane duplicated in high and lower byte of
> the word.
>
> Fix this behaviour by ensuring that if the previous read
> ended up in-between the 2 planes, there will be a first 1
> byte read to get back to the beginning of leftmost plane.
Um, this seems complex. Wouldn't it be easier just to say "Don't Do That
Then" — always read a multiple of two bytes, even if the caller doesn't
care about the last byte?
--
dwmw2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6171 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120515/567fb04d/attachment-0001.bin>
More information about the linux-mtd
mailing list