aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_cmds.c
diff options
context:
space:
mode:
authorSathya Perla <sathya.perla@emulex.com>2010-11-30 20:03:36 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-06 15:59:08 -0500
commit359a972fae84242efa26b86bf09c3ac3784405ba (patch)
treeee9fc71f033e627b14c3a9b8a9101a195ed805f2 /drivers/net/benet/be_cmds.c
parent63657b9c319588cd35ed869e19cc6255dbef0d20 (diff)
be2net: FW init cmd fix for lancer
Lancer can use the same pattern as BE to indicate a driver load to the FW. Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> Signed-off-by: Sathya Perla <sathya.perla@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_cmds.c')
-rw-r--r--drivers/net/benet/be_cmds.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c
index 3865b2bc65e6..31c5ddc08fc8 100644
--- a/drivers/net/benet/be_cmds.c
+++ b/drivers/net/benet/be_cmds.c
@@ -470,25 +470,14 @@ int be_cmd_fw_init(struct be_adapter *adapter)
470 spin_lock(&adapter->mbox_lock); 470 spin_lock(&adapter->mbox_lock);
471 471
472 wrb = (u8 *)wrb_from_mbox(adapter); 472 wrb = (u8 *)wrb_from_mbox(adapter);
473 if (lancer_chip(adapter)) { 473 *wrb++ = 0xFF;
474 *wrb++ = 0xFF; 474 *wrb++ = 0x12;
475 *wrb++ = 0x34; 475 *wrb++ = 0x34;
476 *wrb++ = 0x12; 476 *wrb++ = 0xFF;
477 *wrb++ = 0xFF; 477 *wrb++ = 0xFF;
478 *wrb++ = 0xFF; 478 *wrb++ = 0x56;
479 *wrb++ = 0x78; 479 *wrb++ = 0x78;
480 *wrb++ = 0x56; 480 *wrb = 0xFF;
481 *wrb = 0xFF;
482 } else {
483 *wrb++ = 0xFF;
484 *wrb++ = 0x12;
485 *wrb++ = 0x34;
486 *wrb++ = 0xFF;
487 *wrb++ = 0xFF;
488 *wrb++ = 0x56;
489 *wrb++ = 0x78;
490 *wrb = 0xFF;
491 }
492 481
493 status = be_mbox_notify_wait(adapter); 482 status = be_mbox_notify_wait(adapter);
494 483