Move the enabling of interrupt back to where it was some time ago.

This apparently was what broke the boot with some devices (liteon).
This commit is contained in:
Søren Schmidt 2004-02-02 15:49:01 +00:00
parent e08f155b25
commit b8f6dec455
1 changed files with 3 additions and 4 deletions

View File

@ -645,10 +645,6 @@ ata_reset(struct ata_channel *ch)
DELAY(100000);
}
/* enable interrupt */
DELAY(10);
ATA_IDX_OUTB(ch, ATA_ALTSTAT, ATA_A_4BIT);
if (stat0 & ATA_S_BUSY)
mask &= ~0x01;
if (stat1 & ATA_S_BUSY)
@ -733,6 +729,9 @@ ata_command(struct ata_device *atadev, u_int8_t command,
return -1;
}
/* enable interrupt */
ATA_IDX_OUTB(atadev->channel, ATA_ALTSTAT, ATA_A_4BIT);
/* only use 48bit addressing if needed (avoid bugs and overhead) */
if ((lba > 268435455 || count > 256) && atadev->param &&
atadev->param->support.command2 & ATA_SUPPORT_ADDRESS48) {