Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45056
b: refs/heads/master
c: b0d541d
h: refs/heads/master
v: v3
  • Loading branch information
Amit S. Kale authored and Jeff Garzik committed Dec 26, 2006
1 parent dc1301f commit 4207fa2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d39073484d6e01d325e6d94a3967ce0e98161a7
refs/heads/master: b0d541dbb940fe8899e3020fcc9ee5a1e2be0306
7 changes: 7 additions & 0 deletions trunk/drivers/net/netxen/netxen_nic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
adapter->port[i] = port;
}

writel(0, NETXEN_CRB_NORMALIZE(adapter, CRB_CMDPEG_STATE));
netxen_pinit_from_rom(adapter, 0);
udelay(500);
netxen_load_firmware(adapter);
netxen_phantom_init(adapter, NETXEN_NIC_PEG_TUNE);
/*
* delay a while to ensure that the Pegs are up & running.
* Otherwise, we might see some flaky behaviour.
Expand Down Expand Up @@ -533,6 +538,8 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev)

netxen_nic_stop_all_ports(adapter);
/* leave the hw in the same state as reboot */
netxen_pinit_from_rom(adapter, 0);
writel(0, NETXEN_CRB_NORMALIZE(adapter, CRB_CMDPEG_STATE));
netxen_load_firmware(adapter);
netxen_free_adapter_offload(adapter);

Expand Down

0 comments on commit 4207fa2

Please sign in to comment.