On 20 April 2012 03:12, Peter A. G. Crosthwaite
wrote:
> Subject: [PATCH v3 2/4] m25p80: initial verion
> Added device model for m25p80 SPI flash
This commit message could be improved; I'd suggest a summary line of
"m25p80: Initial implementation of SPI flash device"
>
> Signed-off-by: Peter A
On Fri, Apr 20, 2012 at 3:12 AM, Peter A. G. Crosthwaite
wrote:
> +static inline void flash_sync_area(struct flash *s, int64_t off, int64_t len)
> +{
> + int64_t start, end;
> +
> + if (!s->bdrv) {
> + return;
> + }
> +
> + start = off / 512;
> + end = (off + len) / 512;
> +
Added device model for m25p80 SPI flash
Signed-off-by: Peter A. G. Crosthwaite
---
changed from v2:
updated for SSI slave interface
used async io (suggested - Stefan Hajnoczi)
changed from v1:
converted spi api to modified txrx style
factored out lots of common code and inlined overly short singl