Re: [flashrom] [PATCH] Add a write granularity of 512 bytes

Aug. 27, 2013
10:13 p.m.
On Thu, 28 Mar 2013 13:18:05 +0100 Mark Marshall <markmarshall14@gmail.com> wrote:
I think this is needed for SPI Flash that has a page size of 512.
I have also changed the loop condition in a few places. If the length is not a multiple of stride we need to round up the result of the divide. (Either we need to round up the divide or we should replace the lines "limit = min(stride, len - i * stride);" with "limit = stride;". Rounding up the result of the divide seems to be the correct thing to do.).
Signed-off-by: Mark Marshall <mark.marshall@omicron.at>
Obsolete since r1666. Thanks for your effort though :) -- Kind regards/Mit freundlichen Grüßen, Stefan Tauner
4338
Age (days ago)
4338
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stefan Tauner