[MLX4] reset upon driver unload. [mlnx: 3546]
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 27 Nov 2008 13:38:57 +0000 (13:38 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 27 Nov 2008 13:38:57 +0000 (13:38 +0000)
The patch improves the behavior of mst (with _pci_conf0, after mst stop & start)

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1776 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/kernel/bus/net/main.c

index 1273d77..6d7d848 100644 (file)
@@ -1079,6 +1079,7 @@ void mlx4_remove_one(struct pci_dev *pdev)
                        pci_disable_msix(pdev);
 #endif
 
+               mlx4_reset(dev);
                mlx4_dbg(dev, "MLX4_BUS: NET device (dev_id=%d) is REMOVED ! \n", (int)pdev->dev_id);
                pdev->dev = NULL;
 done: