]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide: fix ->quirk_list checking in ide_do_request()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 29 Dec 2008 19:27:33 +0000 (20:27 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 29 Dec 2008 19:27:33 +0000 (20:27 +0100)
Fix nIEN quirk check to also omit quirky devices using pdc202xx_{new,old}
host drivers for which ->quirk_list == 2.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-io.c

index e41488e1ed4e6c1d9afb07f095d8460e36f7fe16..ca51460af756e07964d350ff1cef680216aa41e1 100644 (file)
@@ -1008,7 +1008,7 @@ static void ide_do_request (ide_hwgroup_t *hwgroup, int masked_irq)
                         * set nIEN for previous hwif, drives in the
                         * quirk_list may not like intr setups/cleanups
                         */
-                       if (drive->quirk_list != 1)
+                       if (drive->quirk_list == 0)
                                hwif->tp_ops->set_irq(hwif, 0);
                }
                hwgroup->hwif = hwif;