mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-09 07:43:53 +00:00
pata_cmd64x: fix handling of address setup timings
Account for the requirements of the DMA mode currently used by the pair device. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
a2bd62207a
commit
d62f5576ef
1 changed files with 6 additions and 0 deletions
|
@ -131,8 +131,14 @@ static void cmd64x_set_timing(struct ata_port *ap, struct ata_device *adev, u8 m
|
||||||
|
|
||||||
if (pair) {
|
if (pair) {
|
||||||
struct ata_timing tp;
|
struct ata_timing tp;
|
||||||
|
|
||||||
ata_timing_compute(pair, pair->pio_mode, &tp, T, 0);
|
ata_timing_compute(pair, pair->pio_mode, &tp, T, 0);
|
||||||
ata_timing_merge(&t, &tp, &t, ATA_TIMING_SETUP);
|
ata_timing_merge(&t, &tp, &t, ATA_TIMING_SETUP);
|
||||||
|
if (pair->dma_mode) {
|
||||||
|
ata_timing_compute(pair, pair->dma_mode,
|
||||||
|
&tp, T, 0);
|
||||||
|
ata_timing_merge(&tp, &t, &t, ATA_TIMING_SETUP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue