]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ide-floppy IOMEGA ZIP fix
authorJens Axboe <axboe@suse.de>
Thu, 16 Oct 2003 00:51:41 +0000 (17:51 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 16 Oct 2003 00:51:41 +0000 (17:51 -0700)
From ramon_garcia_f@yahoo.com:

 "I am experiencing lost interrupts when writting (but not when reading)
  to an IOMEGA Zip drive with the ATAPI floppy driver.

  The driver seems to be aware of the problem and has a workaround for
  it.  Unfortunately my drive is not detected as an IOMEGA drive.  The
  reason is that the model of my drive is "IOMEGA ZIP 100 ATAPI Floppy"
  instead of "IOMEGA ZIP 100 ATAPI", that is what the driver expects. "

drivers/ide/ide-floppy.c

index b664be3904b6d6e67dee1c38c8b42442abaacf3f..55cef4b31d1c4d7624f2d0f296d8021800b7a32f 100644 (file)
@@ -1796,7 +1796,7 @@ static void idefloppy_setup (ide_drive_t *drive, idefloppy_floppy_t *floppy)
         *      we'll leave the limitation below for the 2.2.x tree.
         */
 
-       if (strcmp(drive->id->model, "IOMEGA ZIP 100 ATAPI") == 0) {
+       if (strstr(drive->id->model, "IOMEGA ZIP") != NULL) {
                set_bit(IDEFLOPPY_ZIP_DRIVE, &floppy->flags);
                /* This value will be visible in the /proc/ide/hdx/settings */
                floppy->ticks = IDEFLOPPY_TICKS_DELAY;