From 0227b57719a85762471efc8bd2d5daf0044aac08 Mon Sep 17 00:00:00 2001 From: "andrew.patterson@hp.com" Date: Sat, 5 Apr 2008 14:41:08 +0200 Subject: [PATCH] MCA when shutting down tulip quad-NIC 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 Signed-off-by: Oliver Pinter drivers/net/tulip/tulip_core.c | 4 ++++ 1 file changed, 4 insertions(+) --- drivers/net/tulip/tulip_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/tulip/tulip_core.c b/drivers/net/tulip/tulip_core.c index 041af63f28..4df0284d57 100644 --- a/drivers/net/tulip/tulip_core.c +++ b/drivers/net/tulip/tulip_core.c @@ -1794,6 +1794,10 @@ static void __devexit tulip_remove_one (struct pci_dev *pdev) 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 + -- 2.11.4.GIT