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:
parent
e08f155b25
commit
b8f6dec455
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user