patch-2.2.15 linux/drivers/scsi/pci2000.c
Next file: linux/drivers/scsi/pci2220i.c
Previous file: linux/drivers/scsi/megaraid.h
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Fri Apr 21 12:46:31 2000
- Orig file:
v2.2.14/drivers/scsi/pci2000.c
- Orig date:
Sat Aug 14 02:25:41 1999
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/drivers/scsi/pci2000.c linux/drivers/scsi/pci2000.c
@@ -128,6 +128,28 @@
return TRUE;
}
/****************************************************************
+ * Name: WaitReadyLong :LOCAL
+ *
+ * Description: Wait for controller ready.
+ *
+ * Parameters: padapter - Pointer adapter data structure.
+ *
+ * Returns: TRUE on not ready.
+ *
+ ****************************************************************/
+static int WaitReadyLong (PADAPTER2000 padapter)
+ {
+ ULONG z;
+
+ for ( z = 0; z < (5000 * 4); z++ )
+ {
+ if ( !inb_p (padapter->cmd) )
+ return FALSE;
+ udelay (250);
+ };
+ return TRUE;
+ }
+/****************************************************************
* Name: OpDone :LOCAL
*
* Description: Clean up operation and issue done to caller.
@@ -212,7 +234,7 @@
if ( WaitReady (padapter) ) // test for command register ready
return DID_TIME_OUT;
outb_p (cmd, padapter->cmd); // issue command
- if ( WaitReady (padapter) ) // wait for adapter ready
+ if ( WaitReadyLong (padapter) ) // wait for adapter ready
return DID_TIME_OUT;
return DID_OK;
}
@@ -810,4 +832,3 @@
#include "scsi_module.c"
#endif
-
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)