Commit 3ea4053e authored by Linus Torvalds's avatar Linus Torvalds

Fix IDE initialization when we don't probe for interrupts.

The driver obviously cannot rely on the interrupt handler
when it is probing for interrupts, so the identify code is
written to not use interrupts and the probing code will
disable the interrupt after having figured out which one it
is.

The non-probe code should do the same, otherwise confusion
happens. 
parent 1db72c60
......@@ -390,6 +390,14 @@ static int try_to_identify (ide_drive_t *drive, u8 cmd)
cookie = probe_irq_on();
/* enable device irq */
hwif->OUTB(drive->ctl, IDE_CONTROL_REG);
} else {
/*
* Disable device irq if we don't need to
* probe for it. Otherwise we'll get spurious
* interrupts during the identify-phase that
* the irq handler isn't expecting.
*/
hwif->OUTB(drive->ctl|2, IDE_CONTROL_REG);
}
retval = actual_try_to_identify(drive, cmd);
......
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