diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:11 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:11 -0400 |
commit | f0bb945c9dd5d4b7061c86b2b0511854a67457b5 (patch) | |
tree | e769e4e796b2aa030415d662232e3f03b11a898e | |
parent | 93c680798531503ad1a4f1d6ad22e3785e8c4c75 (diff) |
cs5520: always tune PIO
Since cs5520 uses VDMA best PIO mode was tuned anyway by ide_dma_check()
but only if DMA was successfully initialized.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r-- | drivers/ide/pci/cs5520.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ide/pci/cs5520.c b/drivers/ide/pci/cs5520.c index 6254d7a659aa..fd57efb812b3 100644 --- a/drivers/ide/pci/cs5520.c +++ b/drivers/ide/pci/cs5520.c | |||
@@ -123,10 +123,11 @@ static void __devinit init_hwif_cs5520(ide_hwif_t *hwif) | |||
123 | hwif->set_pio_mode = &cs5520_set_pio_mode; | 123 | hwif->set_pio_mode = &cs5520_set_pio_mode; |
124 | hwif->set_dma_mode = &cs5520_set_dma_mode; | 124 | hwif->set_dma_mode = &cs5520_set_dma_mode; |
125 | 125 | ||
126 | if (hwif->dma_base == 0) { | 126 | hwif->drives[0].autotune = 1; |
127 | hwif->drives[1].autotune = hwif->drives[0].autotune = 1; | 127 | hwif->drives[1].autotune = 1; |
128 | |||
129 | if (hwif->dma_base == 0) | ||
128 | return; | 130 | return; |
129 | } | ||
130 | 131 | ||
131 | hwif->ide_dma_on = &cs5520_dma_on; | 132 | hwif->ide_dma_on = &cs5520_dma_on; |
132 | } | 133 | } |