Re: [patch 2/2] myri10ge - Write the firmware in 256-bytes chunks

2006-07-21 Thread Brice Goglin
Michael Buesch wrote: > On Friday 21 July 2006 21:49, Brice Goglin wrote: > >> +myri10ge_pio_copy(mgp->sram + MYRI10GE_FW_OFFSET + i, >> + fw->data + i, >> + min(256U, (unsigned)(fw->size - i))); >> +mb(); >> +

Re: [patch 2/2] myri10ge - Write the firmware in 256-bytes chunks

2006-07-21 Thread Michael Buesch
On Friday 21 July 2006 21:49, Brice Goglin wrote: > When writing the firmware to the NIC, the FIFO is 256-bytes long, > so we use 256-bytes chunks and a read to wait until the previous > write is done. > > Signed-off-by: Brice Goglin <[EMAIL PROTECTED]> > --- > drivers/net/myri10ge/myri10ge.c |

[patch 2/2] myri10ge - Write the firmware in 256-bytes chunks

2006-07-21 Thread Brice Goglin
When writing the firmware to the NIC, the FIFO is 256-bytes long, so we use 256-bytes chunks and a read to wait until the previous write is done. Signed-off-by: Brice Goglin <[EMAIL PROTECTED]> --- drivers/net/myri10ge/myri10ge.c | 20 1 file changed, 8 insertions(+), 12 de