Commit c9366214 authored by Vojtech Pavlik's avatar Vojtech Pavlik

Workaround (ide-timing.h) for many ATAPI CD/DVD-ROMs and burners.

They need extended (beyond spec) address setup timing, and as such
don't work on recent VIA chipsets.
parent 99a6e15b
......@@ -244,6 +244,14 @@ static int ide_timing_compute(ide_drive_t *drive, short speed, struct ide_timing
ide_timing_merge(&p, t, t, IDE_TIMING_CYCLE | IDE_TIMING_CYC8B);
}
/*
* If the drive is an ATAPI device it may need slower address setup timing,
* so we stay on the safe side.
*/
if (drive->media != ide_disk)
p.setup = 120;
/*
* Convert the timing to bus clock counts.
*/
......
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