aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorBrice Goglin <brice@myri.com>2008-05-08 20:18:45 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-05-13 01:30:28 -0400
commitbd2db0cf2411ebc081d45bde1b7c6cf726b832f2 (patch)
tree9c6ad67df7c065e935e9c03e926a4d605ac6d8b2 /drivers/net
parentc0bf8801535d45df3597839edf864e24f60a4188 (diff)
myri10ge: add barrier in myri10ge_send_cmd
Add a barrier() in the usleep() loop in myri10ge_send_cmd(). Without the barrier, some mips machine never notices that the firmware has DMA'ed the response. Signed-off-by: Brice Goglin <brice@myri.com> Signed-off-by: Andrew Gallatin <gallatin@myri.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/myri10ge/myri10ge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index 4a65e4155c0f..48fe624afa53 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -361,8 +361,10 @@ myri10ge_send_cmd(struct myri10ge_priv *mgp, u32 cmd,
361 for (sleep_total = 0; 361 for (sleep_total = 0;
362 sleep_total < 1000 362 sleep_total < 1000
363 && response->result == htonl(MYRI10GE_NO_RESPONSE_RESULT); 363 && response->result == htonl(MYRI10GE_NO_RESPONSE_RESULT);
364 sleep_total += 10) 364 sleep_total += 10) {
365 udelay(10); 365 udelay(10);
366 mb();
367 }
366 } else { 368 } else {
367 /* use msleep for most command */ 369 /* use msleep for most command */
368 for (sleep_total = 0; 370 for (sleep_total = 0;