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

2011-08-19 Thread Simon Glass
On Fri, Aug 19, 2011 at 12:57 PM, Mike Frysinger wrote: > On Friday, August 19, 2011 14:25:46 Simon Glass wrote: >> On Fri, Aug 19, 2011 at 12:19 PM, Mike Frysinger wrote: >> > On Friday, August 19, 2011 14:07:16 Simon Glass wrote: >> >> On Fri, Aug 19, 2011 at 9:14 AM, Mike Frysinger wrote: >> >>

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

2011-08-19 Thread Mike Frysinger
On Friday, August 19, 2011 14:25:46 Simon Glass wrote: > On Fri, Aug 19, 2011 at 12:19 PM, Mike Frysinger wrote: > > On Friday, August 19, 2011 14:07:16 Simon Glass wrote: > >> On Fri, Aug 19, 2011 at 9:14 AM, Mike Frysinger wrote: > >> > On Friday, August 19, 2011 09:47:04 Simon Glass wrote: > >>

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

2011-08-19 Thread Simon Glass
Hi Mike, On Fri, Aug 19, 2011 at 12:19 PM, Mike Frysinger wrote: > On Friday, August 19, 2011 14:07:16 Simon Glass wrote: >> On Fri, Aug 19, 2011 at 9:14 AM, Mike Frysinger wrote: >> > On Friday, August 19, 2011 09:47:04 Simon Glass wrote: >> >> +static int spi_flash_update(struct spi_flash *flas

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

2011-08-19 Thread Mike Frysinger
On Friday, August 19, 2011 14:07:16 Simon Glass wrote: > On Fri, Aug 19, 2011 at 9:14 AM, Mike Frysinger wrote: > > On Friday, August 19, 2011 09:47:04 Simon Glass wrote: > >> +static int spi_flash_update(struct spi_flash *flash, u32 offset, > >> + size_t len, const char *buf) > >> +{ >

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

2011-08-19 Thread Simon Glass
Hi Mike, On Fri, Aug 19, 2011 at 9:14 AM, Mike Frysinger wrote: > On Friday, August 19, 2011 09:47:04 Simon Glass wrote: >> 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

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

2011-08-19 Thread Mike Frysinger
On Friday, August 19, 2011 09:47:04 Simon Glass wrote: > 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. sounds good > +static int spi_flash_upda

[U-Boot] [PATCH] 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 --- common/cmd_sf.c | 75 ++