[U-Boot] [PATCH v2] Add 'sf update' command to do smart SPI flash update

2011-08-19 Thread Simon Glass
This adds a new SPI flash command which only rewrites blocks if the contents need to change. This can speed up SPI flash programming when much of the data is unchanged from what is already there. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: -Moved loop into a function -Moved

Re: [U-Boot] [PATCH v2] Add 'sf update' command to do smart SPI flash update

2011-08-19 Thread Mike Frysinger
On Friday, August 19, 2011 14:19:42 Simon Glass wrote: +static const char *write_block(struct spi_flash *flash, u32 offset, + size_t len, const char *buf, char *cmp_buf, size_t *skipped) spi_flash_update_block is probably a better name. after all, you're doing more (and sometimes

Re: [U-Boot] [PATCH v2] Add 'sf update' command to do smart SPI flash update

2011-08-19 Thread Simon Glass
Hi Mike, On Fri, Aug 19, 2011 at 1:03 PM, Mike Frysinger vap...@gentoo.org wrote: On Friday, August 19, 2011 14:19:42 Simon Glass wrote: +static const char *write_block(struct spi_flash *flash, u32 offset, +             size_t len, const char *buf, char *cmp_buf, size_t *skipped)