فهرست منبع

[PATCH] ide-floppy: fix IDEFLOPPY_TICKS_DELAY

* IDEFLOPPY_TICKS_DELAY assumed HZ == 100, fix it
* increase the delay to 50ms (to match comment in the code)

Thanks to Manfred Scherer <manfred.scherer.mhm@t-online.de>
for reporting the problem and testing the patch.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Bartlomiej Zolnierkiewicz 20 سال پیش
والد
کامیت
c40d3d38a8
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      drivers/ide/ide-floppy.c

+ 1 - 1
drivers/ide/ide-floppy.c

@@ -317,7 +317,7 @@ typedef struct ide_floppy_obj {
 	unsigned long flags;
 	unsigned long flags;
 } idefloppy_floppy_t;
 } idefloppy_floppy_t;
 
 
-#define IDEFLOPPY_TICKS_DELAY	3	/* default delay for ZIP 100 */
+#define IDEFLOPPY_TICKS_DELAY	HZ/20	/* default delay for ZIP 100 (50ms) */
 
 
 /*
 /*
  *	Floppy flag bits values.
  *	Floppy flag bits values.