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

Stefan Tauner stefan.tauner at student.tuwien.ac.at
Tue Aug 27 22:13:10 CEST 2013


On Thu, 28 Mar 2013 13:18:05 +0100
Mark Marshall <markmarshall14 at 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 at omicron.at>

Obsolete since r1666. Thanks for your effort though :)

-- 
Kind regards/Mit freundlichen Grüßen, Stefan Tauner




More information about the flashrom mailing list