]> Pileus Git - ~andy/linux/blobdiff - drivers/ide/piix.c
tracing/kprobes: Add probe handler dispatcher to support perf and ftrace concurrent use
[~andy/linux] / drivers / ide / piix.c
index 69860dea382071f8886f6db375347537c53b9eb7..bf14f39bd3a78c470a7333ee7ebe07bb191e4cc8 100644 (file)
@@ -98,7 +98,7 @@ static void piix_set_pio_mode(ide_drive_t *drive, const u8 pio)
                control |= 1;   /* Programmable timing on */
        if (drive->media == ide_disk)
                control |= 4;   /* Prefetch, post write */
-       if (pio > 2)
+       if (ide_pio_need_iordy(drive, pio))
                control |= 2;   /* IORDY */
        if (is_slave) {
                master_data |=  0x4000;