Commit 15eef1e1 authored by Dhananjay Phadke's avatar Dhananjay Phadke Committed by Jeff Garzik

netxen: fix dma watchdog

NX3031 does not require driver to kill dma watchdog.
Signed-off-by: default avatarDhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 922c4f2c
...@@ -1079,10 +1079,12 @@ int netxen_initialize_adapter_offload(struct netxen_adapter *adapter) ...@@ -1079,10 +1079,12 @@ int netxen_initialize_adapter_offload(struct netxen_adapter *adapter)
void netxen_free_adapter_offload(struct netxen_adapter *adapter) void netxen_free_adapter_offload(struct netxen_adapter *adapter)
{ {
int i; int i = 100;
if (!adapter->dummy_dma.addr)
return;
if (adapter->dummy_dma.addr) { if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
i = 100;
do { do {
if (dma_watchdog_shutdown_request(adapter) == 1) if (dma_watchdog_shutdown_request(adapter) == 1)
break; break;
...@@ -1090,6 +1092,7 @@ void netxen_free_adapter_offload(struct netxen_adapter *adapter) ...@@ -1090,6 +1092,7 @@ void netxen_free_adapter_offload(struct netxen_adapter *adapter)
if (dma_watchdog_shutdown_poll_result(adapter) == 1) if (dma_watchdog_shutdown_poll_result(adapter) == 1)
break; break;
} while (--i); } while (--i);
}
if (i) { if (i) {
pci_free_consistent(adapter->pdev, pci_free_consistent(adapter->pdev,
...@@ -1101,7 +1104,6 @@ void netxen_free_adapter_offload(struct netxen_adapter *adapter) ...@@ -1101,7 +1104,6 @@ void netxen_free_adapter_offload(struct netxen_adapter *adapter)
printk(KERN_ERR "%s: dma_watchdog_shutdown failed\n", printk(KERN_ERR "%s: dma_watchdog_shutdown failed\n",
adapter->netdev->name); adapter->netdev->name);
} }
}
} }
int netxen_phantom_init(struct netxen_adapter *adapter, int pegtune_val) int netxen_phantom_init(struct netxen_adapter *adapter, int pegtune_val)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment