Commit 750e519d authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Jeff Garzik

pata_pdc202xx_old: fix UDMA mode for PDC2026x chipsets

PDC2026x chipsets need the same treatment as PDC20246 one.

This is completely untested but will hopefully fix UDMA issues
that people have been reporting against pata_pdc202xx_old for
the last couple of years.
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent a75032e8
...@@ -35,7 +35,7 @@ static int pdc2026x_cable_detect(struct ata_port *ap) ...@@ -35,7 +35,7 @@ static int pdc2026x_cable_detect(struct ata_port *ap)
return ATA_CBL_PATA80; return ATA_CBL_PATA80;
} }
static void pdc20246_exec_command(struct ata_port *ap, static void pdc202xx_exec_command(struct ata_port *ap,
const struct ata_taskfile *tf) const struct ata_taskfile *tf)
{ {
DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command); DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command);
...@@ -281,7 +281,7 @@ static struct ata_port_operations pdc2024x_port_ops = { ...@@ -281,7 +281,7 @@ static struct ata_port_operations pdc2024x_port_ops = {
.set_piomode = pdc202xx_set_piomode, .set_piomode = pdc202xx_set_piomode,
.set_dmamode = pdc202xx_set_dmamode, .set_dmamode = pdc202xx_set_dmamode,
.sff_exec_command = pdc20246_exec_command, .sff_exec_command = pdc202xx_exec_command,
}; };
static struct ata_port_operations pdc2026x_port_ops = { static struct ata_port_operations pdc2026x_port_ops = {
...@@ -295,6 +295,8 @@ static struct ata_port_operations pdc2026x_port_ops = { ...@@ -295,6 +295,8 @@ static struct ata_port_operations pdc2026x_port_ops = {
.dev_config = pdc2026x_dev_config, .dev_config = pdc2026x_dev_config,
.port_start = pdc2026x_port_start, .port_start = pdc2026x_port_start,
.sff_exec_command = pdc202xx_exec_command,
}; };
static int pdc202xx_init_one(struct pci_dev *dev, const struct pci_device_id *id) static int pdc202xx_init_one(struct pci_dev *dev, const struct pci_device_id *id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment