patch-2.1.127 linux/drivers/block/floppy.c
Next file: linux/drivers/block/ide-cd.c
Previous file: linux/arch/sparc64/solaris/Makefile
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Fri Nov 6 12:33:25 1998
- Orig file:
v2.1.126/linux/drivers/block/floppy.c
- Orig date:
Fri Oct 23 22:01:20 1998
diff -u --recursive --new-file v2.1.126/linux/drivers/block/floppy.c linux/drivers/block/floppy.c
@@ -1740,12 +1740,14 @@
if(do_print)
print_result("unexpected interrupt", inr);
if (inr == 0){
+ int max_sensei = 4;
do {
output_byte(FD_SENSEI);
inr = result();
if(do_print)
print_result("sensei", inr);
- } while ((ST0 & 0x83) != UNIT(current_drive) && inr == 2);
+ max_sensei--;
+ } while ((ST0 & 0x83) != UNIT(current_drive) && inr == 2 && max_sensei);
}
if (handler) {
int cpu = smp_processor_id();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov