]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/ide/pci/cy82c693.c
ide: add PIO masks
[karo-tx-linux.git] / drivers / ide / pci / cy82c693.c
index 995b7256361335c88dfb3a670951ef285a00352e..daa36fcbc8ef4e6ae995dbbcda8966762cd53264 100644 (file)
@@ -330,7 +330,7 @@ static void cy82c693_tune_drive (ide_drive_t *drive, u8 pio)
 #endif /* CY82C693_DEBUG_LOGS */
 
        /* first let's calc the pio modes */
-       pio = ide_get_best_pio_mode(drive, pio, CY82C693_MAX_PIO, NULL);
+       pio = ide_get_best_pio_mode(drive, pio, CY82C693_MAX_PIO);
 
 #if CY82C693_DEBUG_INFO
        printk (KERN_INFO "%s: Selected PIO mode %d\n", drive->name, pio);
@@ -486,6 +486,7 @@ static ide_pci_device_t cy82c693_chipset __devinitdata = {
        .autodma        = AUTODMA,
        .bootable       = ON_BOARD,
        .host_flags     = IDE_HFLAG_SINGLE,
+       .pio_mask       = ATA_PIO4,
 };
 
 static int __devinit cy82c693_init_one(struct pci_dev *dev, const struct pci_device_id *id)