Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133388
b: refs/heads/master
c: 80d15a6
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent 13595f2 commit aea55b8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b166ae7bb9610cdd3c4c66b960aa04004054e41
refs/heads/master: 80d15a607ae95dd0514ab1ab5ea1058a3a585f2b
4 changes: 0 additions & 4 deletions trunk/drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1183,10 +1183,6 @@ static void ide_init_port(ide_hwif_t *hwif, unsigned int port,
if (d->init_iops)
d->init_iops(hwif);

if ((!hwif->irq && (d->host_flags & IDE_HFLAG_LEGACY_IRQS)) ||
(d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS))
hwif->irq = port ? 15 : 14;

/* ->host_flags may be set by ->init_iops (or even earlier...) */
hwif->host_flags |= d->host_flags;
hwif->pio_mask = d->pio_mask;
Expand Down
12 changes: 12 additions & 0 deletions trunk/drivers/ide/setup-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,12 @@ int ide_pci_init_one(struct pci_dev *dev, const struct ide_port_info *d,
/* fixup IRQ */
hw[1].irq = hw[0].irq = ret;

if ((ret == 0 && (d->host_flags & IDE_HFLAG_LEGACY_IRQS)) ||
(d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS)) {
hw[0].irq = 14;
hw[1].irq = 15;
}

ret = ide_host_register(host, d, hws);
if (ret)
ide_host_free(host);
Expand Down Expand Up @@ -620,6 +626,12 @@ int ide_pci_init_two(struct pci_dev *dev1, struct pci_dev *dev2,

/* fixup IRQ */
hw[i*2 + 1].irq = hw[i*2].irq = ret;

if ((ret == 0 && (d->host_flags & IDE_HFLAG_LEGACY_IRQS)) ||
(d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS)) {
hw[i*2].irq = 14;
hw[i*2 + 1].irq = 15;
}
}

ret = ide_host_register(host, d, hws);
Expand Down

0 comments on commit aea55b8

Please sign in to comment.