qubes-linux-kernel/patches.fixes/tulip-quad-NIC-ifdown

28 lines
788 B
Plaintext
Raw Normal View History

Subject: MCA when shutting down tulip quad-NIC
From: andrew.patterson@hp.com
References: SUSE39204
Patch-mainline: not yet
Shutting down the network causes an MCA because of an IO TLB error when
a DEC quad 10/100 card is in any slot. This problem was originally seen
on an HP rx4640.
Acked-by: Olaf Kirch <okir@suse.de>
drivers/net/tulip/tulip_core.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/drivers/net/tulip/tulip_core.c
+++ b/drivers/net/tulip/tulip_core.c
2011-04-19 20:09:59 +00:00
@@ -1943,6 +1943,10 @@ static void __devexit tulip_remove_one (
return;
tp = netdev_priv(dev);
+
+ /* shoot NIC in the head before deallocating descriptors */
+ pci_disable_device(tp->pdev);
+
unregister_netdev(dev);
pci_free_consistent (pdev,
sizeof (struct tulip_rx_desc) * RX_RING_SIZE +