Re: newer parallel ZIP (2.2.1 imm.o buggy)

David Monniaux (monniaux@clipper.ens.fr)
Tue, 9 Feb 1999 01:52:23 +0100 (MET)


I think I nailed the problem down: imm tried EPP-16 even when the
machine was not able to use EPP-16.

The following patch solves the problem:

--- linux/drivers/scsi/imm.c.orig Tue Feb 9 00:22:24 1999
+++ linux/drivers/scsi/imm.c Tue Feb 9 01:52:45 1999
@@ -1184,7 +1184,12 @@
old_mode = imm_hosts[host_no].mode;
for (loop = 0; loop < 8; loop++) {
/* Attempt to use EPP for Test Unit Ready */
- if ((ppb & 0x0007) == 0x0000)
+
+/* The following pair of lines didn't check whether old_mode was IMM_EPP_16,
+and it broke the whole imm on my laptop (PS/2 mode).
+This fixes the problem for my configuration.
+[David.Monniaux@ens.fr] */
+ if (old_mode == IMM_EPP_16 && (ppb & 0x0007) == 0x0000)
imm_hosts[host_no].mode = IMM_EPP_32;

second_pass:
~

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/