diff options
author | Alan Cox <alan@redhat.com> | 2009-01-05 09:16:39 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-01-08 16:34:27 -0500 |
commit | 871af1210f13966ab911ed2166e4ab2ce775b99d (patch) | |
tree | f17f0016f6e966d54a379a3de6e6bbde3b9359fe /drivers/ata/pata_ali.c | |
parent | e427fe042cf90c0652eed9a85e57a8fd8af89890 (diff) |
libata: Add 32bit PIO support
This matters for some controllers and in one or two cases almost doubles
PIO performance. Add a bmdma32 operations set we can inherit and activate
it for some controllers
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_ali.c')
-rw-r--r-- | drivers/ata/pata_ali.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c index a4f9e39442c6..a7999c19f0c9 100644 --- a/drivers/ata/pata_ali.c +++ b/drivers/ata/pata_ali.c | |||
@@ -151,8 +151,7 @@ static void ali_fifo_control(struct ata_port *ap, struct ata_device *adev, int o | |||
151 | 151 | ||
152 | pci_read_config_byte(pdev, pio_fifo, &fifo); | 152 | pci_read_config_byte(pdev, pio_fifo, &fifo); |
153 | fifo &= ~(0x0F << shift); | 153 | fifo &= ~(0x0F << shift); |
154 | if (on) | 154 | fifo |= (on << shift); |
155 | fifo |= (on << shift); | ||
156 | pci_write_config_byte(pdev, pio_fifo, fifo); | 155 | pci_write_config_byte(pdev, pio_fifo, fifo); |
157 | } | 156 | } |
158 | 157 | ||
@@ -370,10 +369,11 @@ static struct ata_port_operations ali_early_port_ops = { | |||
370 | .inherits = &ata_sff_port_ops, | 369 | .inherits = &ata_sff_port_ops, |
371 | .cable_detect = ata_cable_40wire, | 370 | .cable_detect = ata_cable_40wire, |
372 | .set_piomode = ali_set_piomode, | 371 | .set_piomode = ali_set_piomode, |
372 | .sff_data_xfer = ata_sff_data_xfer32, | ||
373 | }; | 373 | }; |
374 | 374 | ||
375 | static const struct ata_port_operations ali_dma_base_ops = { | 375 | static const struct ata_port_operations ali_dma_base_ops = { |
376 | .inherits = &ata_bmdma_port_ops, | 376 | .inherits = &ata_bmdma32_port_ops, |
377 | .set_piomode = ali_set_piomode, | 377 | .set_piomode = ali_set_piomode, |
378 | .set_dmamode = ali_set_dmamode, | 378 | .set_dmamode = ali_set_dmamode, |
379 | }; | 379 | }; |