Commit 749949ea authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] pdc202xx_old.c: fix enabling 66MHz clock for modes > UDMA2

drive->id is now always present even if no device is attached,
therefore check for drive->present instead.
parent 4a59db4e
......@@ -424,10 +424,10 @@ static int config_chipset_for_dma (ide_drive_t *drive)
} else {
if (ultra_66) {
/*
* check to make sure drive on same channel
* is u66 capable
* Check to make sure drive on the same channel
* is UDMA3 or higher capable. Ignore empty slots.
*/
if (hwif->drives[!(drive->dn%2)].id) {
if (hwif->drives[!(drive->dn%2)].present) {
if (hwif->drives[!(drive->dn%2)].id->dma_ultra & 0x0078) {
hwif->OUTB(CLKSPD | mask, (hwif->dma_master + 0x11));
} else {
......
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