linux v2.6.22.21-op1-rc1 patches
[linux-2.6.22.y-op-patches.git] / review-2.6.22.y / tulip-quad-NIC-ifdown.patch
blob672131181d227839104fd85e3117bff8a9c95869
1 Subject: MCA when shutting down tulip quad-NIC
2 From: andrew.patterson@hp.com
3 References: SUSE39204
5 Shutting down the network causes an MCA because of an IO TLB error when
6 a DEC quad 10/100 card is in any slot. This problem was originally seen
7 on an HP rx4640.
9 Acked-by: Olaf Kirch <okir@suse.de>
10 Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
12 drivers/net/tulip/tulip_core.c | 4 ++++
13 1 file changed, 4 insertions(+)
15 --- a/drivers/net/tulip/tulip_core.c 2007-07-08 19:32:17.000000000 -0400
16 +++ b/drivers/net/tulip/tulip_core.c 2007-08-27 14:01:23.000000000 -0400
17 @@ -1794,6 +1794,10 @@ static void __devexit tulip_remove_one (
18 return;
20 tp = netdev_priv(dev);
22 + /* shoot NIC in the head before deallocating descriptors */
23 + pci_disable_device(tp->pdev);
25 unregister_netdev(dev);
26 pci_free_consistent (pdev,
27 sizeof (struct tulip_rx_desc) * RX_RING_SIZE +