ide: add IDE_DFLAG_NIEN_QUIRK device flag
[deliverable/linux.git] / drivers / ide / ide-eh.c
index 39d589254d415559ab13836fb9c520000ef86a20..2b91419796136e24b4a98a27dd85aab0c6caccc0 100644 (file)
@@ -407,8 +407,9 @@ static ide_startstop_t do_reset1(ide_drive_t *drive, int do_not_try_atapi)
        /* more than enough time */
        udelay(10);
        /* clear SRST, leave nIEN (unless device is on the quirk list) */
-       tp_ops->write_devctl(hwif, (drive->quirk_list == 2 ? 0 : ATA_NIEN) |
-                            ATA_DEVCTL_OBS);
+       tp_ops->write_devctl(hwif,
+               ((drive->dev_flags & IDE_DFLAG_NIEN_QUIRK) ? 0 : ATA_NIEN) |
+                ATA_DEVCTL_OBS);
        /* more than enough time */
        udelay(10);
        hwif->poll_timeout = jiffies + WAIT_WORSTCASE;
This page took 0.023627 seconds and 5 git commands to generate.