diff options
Diffstat (limited to 'drivers/ata/pata_it8213.c')
-rw-r--r-- | drivers/ata/pata_it8213.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_it8213.c b/drivers/ata/pata_it8213.c index f0bf77ad371f..bcc190a1c426 100644 --- a/drivers/ata/pata_it8213.c +++ b/drivers/ata/pata_it8213.c | |||
@@ -210,7 +210,7 @@ static void it8213_set_dmamode (struct ata_port *ap, struct ata_device *adev) | |||
210 | master_data &= 0xFF4F; /* Mask out IORDY|TIME1|DMAONLY */ | 210 | master_data &= 0xFF4F; /* Mask out IORDY|TIME1|DMAONLY */ |
211 | master_data |= control << 4; | 211 | master_data |= control << 4; |
212 | pci_read_config_byte(dev, 0x44, &slave_data); | 212 | pci_read_config_byte(dev, 0x44, &slave_data); |
213 | slave_data &= (0x0F + 0xE1 * ap->port_no); | 213 | slave_data &= 0xF0; |
214 | /* Load the matching timing */ | 214 | /* Load the matching timing */ |
215 | slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); | 215 | slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); |
216 | pci_write_config_byte(dev, 0x44, slave_data); | 216 | pci_write_config_byte(dev, 0x44, slave_data); |