diff options
| author | Vojtech Pavlik <vojtech@suse.cz> | 2002-12-27 12:46:29 +0100 |
|---|---|---|
| committer | Vojtech Pavlik <vojtech@suse.cz> | 2002-12-27 12:46:29 +0100 |
| commit | c936621403dcc795831095b37d3772c50099faec (patch) | |
| tree | 314b20d764785ee550367a4a8155d14c116a2e0d | |
| parent | 99a6e15b856ffd9a91f6d85dfaa09d3a38857d7f (diff) | |
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.
| -rw-r--r-- | drivers/ide/ide-timing.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ide/ide-timing.h b/drivers/ide/ide-timing.h index c1196ce15b4d..cb42f1180b86 100644 --- a/drivers/ide/ide-timing.h +++ b/drivers/ide/ide-timing.h @@ -245,6 +245,14 @@ static int ide_timing_compute(ide_drive_t *drive, short speed, struct ide_timing } /* + * 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. */ |
