]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.fixes/tulip-quad-NIC-ifdown
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.fixes / tulip-quad-NIC-ifdown
CommitLineData
2cb7cef9
BS
1Subject: MCA when shutting down tulip quad-NIC
2From: andrew.patterson@hp.com
3References: SUSE39204
4
5Shutting down the network causes an MCA because of an IO TLB error when
6a DEC quad 10/100 card is in any slot. This problem was originally seen
7on an HP rx4640.
8
9Acked-by: Olaf Kirch <okir@suse.de>
10
11 drivers/net/tulip/tulip_core.c | 4 ++++
12 1 file changed, 4 insertions(+)
13
14--- a/drivers/net/tulip/tulip_core.c
15+++ b/drivers/net/tulip/tulip_core.c
16@@ -1788,6 +1788,10 @@ static void __devexit tulip_remove_one (
17 return;
18
19 tp = netdev_priv(dev);
20+
21+ /* shoot NIC in the head before deallocating descriptors */
22+ pci_disable_device(tp->pdev);
23+
24 unregister_netdev(dev);
25 pci_free_consistent (pdev,
26 sizeof (struct tulip_rx_desc) * RX_RING_SIZE +