Put a 1000 msec delay after resetting the device before attempting to do
config cycles on it. Not doing this causes system hangs on some
chipsets, e.g. Intel Corporation E7520, when the driver is loaded.

Signed-off-by: Eli Cohen <[EMAIL PROTECTED]>

---

ofa_1_3_dev_kernel.orig/drivers/net/mlx4/reset.c        2007-08-13 
16:25:31.000000000 +0300
+++ ofa_1_3_dev_kernel/drivers/net/mlx4/reset.c 2007-08-13 17:54:24.000000000 
+0300
@@ -119,6 +119,7 @@
        writel(MLX4_RESET_VALUE, reset + MLX4_RESET_OFFSET);
        iounmap(reset);
 
+       msleep(1000);
        end = jiffies + MLX4_RESET_TIMEOUT_JIFFIES;
        do {
                if (!pci_read_config_word(dev->pdev, PCI_VENDOR_ID, &vendor) &&

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to