diff options
author | Amit S. Kale <amitkale@netxen.com> | 2006-12-18 08:51:29 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-26 16:45:25 -0500 |
commit | b0d541dbb940fe8899e3020fcc9ee5a1e2be0306 (patch) | |
tree | b7c0fb98d5a5830fbf99e4b46c13e918f76aa576 /drivers/net/netxen/netxen_nic_main.c | |
parent | 0d39073484d6e01d325e6d94a3967ce0e98161a7 (diff) |
NetXen: driver reload fix for newer firmware.
Signed-off-by: Amit S. Kale <amitkale@netxen.com>
netxen_nic_main.c | 7 +++++++
1 files changed, 7 insertions(+)
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_main.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index d8b1daf0e4b9..f2b3fbc593c6 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -446,6 +446,11 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
446 | adapter->port[i] = port; | 446 | adapter->port[i] = port; |
447 | } | 447 | } |
448 | 448 | ||
449 | writel(0, NETXEN_CRB_NORMALIZE(adapter, CRB_CMDPEG_STATE)); | ||
450 | netxen_pinit_from_rom(adapter, 0); | ||
451 | udelay(500); | ||
452 | netxen_load_firmware(adapter); | ||
453 | netxen_phantom_init(adapter, NETXEN_NIC_PEG_TUNE); | ||
449 | /* | 454 | /* |
450 | * delay a while to ensure that the Pegs are up & running. | 455 | * delay a while to ensure that the Pegs are up & running. |
451 | * Otherwise, we might see some flaky behaviour. | 456 | * Otherwise, we might see some flaky behaviour. |
@@ -533,6 +538,8 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev) | |||
533 | 538 | ||
534 | netxen_nic_stop_all_ports(adapter); | 539 | netxen_nic_stop_all_ports(adapter); |
535 | /* leave the hw in the same state as reboot */ | 540 | /* leave the hw in the same state as reboot */ |
541 | netxen_pinit_from_rom(adapter, 0); | ||
542 | writel(0, NETXEN_CRB_NORMALIZE(adapter, CRB_CMDPEG_STATE)); | ||
536 | netxen_load_firmware(adapter); | 543 | netxen_load_firmware(adapter); |
537 | netxen_free_adapter_offload(adapter); | 544 | netxen_free_adapter_offload(adapter); |
538 | 545 | ||