···6767 *6868 * Alter PIO_MASK below according to table to set maximal PIO mode.6969 */7070-#define PIO_MASK (0x1f)7070+enum {7171+ PIO_MASK = ATA_PIO4,7272+};71737274/*7375 * Struct containing private information about device.
···129129static int winbond; /* Set to probe Winbond controllers,130130 give I/O port if non standard */131131static int autospeed; /* Chip present which snoops speed changes */132132-static int pio_mask = 0x1F; /* PIO range for autospeed devices */132132+static int pio_mask = ATA_PIO4; /* PIO range for autospeed devices */133133static int iordy_mask = 0xFFFFFFFF; /* Use iordy if available */134134135135/**
+4-4
drivers/ata/pata_marvell.c
···126126 static const struct ata_port_info info = {127127 .flags = ATA_FLAG_SLAVE_POSS,128128129129- .pio_mask = 0x1f,130130- .mwdma_mask = 0x07,129129+ .pio_mask = ATA_PIO4,130130+ .mwdma_mask = ATA_MWDMA2,131131 .udma_mask = ATA_UDMA5,132132133133 .port_ops = &marvell_ops,···136136 /* Slave possible as its magically mapped not real */137137 .flags = ATA_FLAG_SLAVE_POSS,138138139139- .pio_mask = 0x1f,140140- .mwdma_mask = 0x07,139139+ .pio_mask = ATA_PIO4,140140+ .mwdma_mask = ATA_MWDMA2,141141 .udma_mask = ATA_UDMA6,142142143143 .port_ops = &marvell_ops,