[parisc-linux-cvs] disconnect/reselect fix for sim700.c
Richard Hirst
rhirst@linuxcare.com
Tue, 17 Apr 2001 18:25:38 +0100
This fixes a problem with disconnect/reselect for 53c700. Not a problem
on 53c710. Driver got confused if it tried to abort the script just as
something reselected, resulting in both reselected and aborted status
bits being set.
Index: drivers/scsi/sim700.c
===================================================================
RCS file: /home/cvs/parisc/linux/drivers/scsi/sim700.c,v
retrieving revision 1.26
diff -u -r1.26 sim700.c
--- sim700.c 2001/04/02 22:40:02 1.26
+++ sim700.c 2001/04/17 17:10:04
@@ -1212,6 +1212,7 @@
else {
/* Clear abort */
NCR_write8(ISTAT_REG, 0);
+ dstat &= ~DSTAT_ABRT;
}
DEB(DEB_DISC, printk("scsi%d: Select of %d interrupted "