diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2011-10-13 12:11:29 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2011-10-14 13:25:13 -0400 |
commit | 11e872a3e1e93ba00e5ec04a74c4d2fe3e14e708 (patch) | |
tree | c3eef07acd4aef5bd9e692b8352220908ba34934 /drivers/ata | |
parent | bb612cba3a591eca80ea581223e26f6e917391a9 (diff) |
pata_it8213: add UDMA100 and UDMA133 support
Fixes IDE -> libata regression.
IDE's it8213 host driver has been supporting those modes
(per official documentation) since the initial driver's merge
on Feb 7 2007 (commit 9c6712c0 "ide: add it8213 IDE driver").
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/pata_it8213.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_it8213.c b/drivers/ata/pata_it8213.c index 998af0e629b1..4f0f7795a7a1 100644 --- a/drivers/ata/pata_it8213.c +++ b/drivers/ata/pata_it8213.c | |||
@@ -163,7 +163,7 @@ static void it8213_set_dmamode (struct ata_port *ap, struct ata_device *adev) | |||
163 | 163 | ||
164 | /* Clocks follow the PIIX style */ | 164 | /* Clocks follow the PIIX style */ |
165 | u_speed = min(2 - (udma & 1), udma); | 165 | u_speed = min(2 - (udma & 1), udma); |
166 | if (udma == 5) | 166 | if (udma > 4) |
167 | u_clock = 0x1000; /* 100Mhz */ | 167 | u_clock = 0x1000; /* 100Mhz */ |
168 | else if (udma > 2) | 168 | else if (udma > 2) |
169 | u_clock = 1; /* 66Mhz */ | 169 | u_clock = 1; /* 66Mhz */ |
@@ -262,7 +262,7 @@ static int it8213_init_one (struct pci_dev *pdev, const struct pci_device_id *en | |||
262 | .flags = ATA_FLAG_SLAVE_POSS, | 262 | .flags = ATA_FLAG_SLAVE_POSS, |
263 | .pio_mask = ATA_PIO4, | 263 | .pio_mask = ATA_PIO4, |
264 | .mwdma_mask = ATA_MWDMA12_ONLY, | 264 | .mwdma_mask = ATA_MWDMA12_ONLY, |
265 | .udma_mask = ATA_UDMA4, /* FIXME: want UDMA 100? */ | 265 | .udma_mask = ATA_UDMA6, |
266 | .port_ops = &it8213_ops, | 266 | .port_ops = &it8213_ops, |
267 | }; | 267 | }; |
268 | /* Current IT8213 stuff is single port */ | 268 | /* Current IT8213 stuff is single port */ |