mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do not consider the last interrupt shared if there are enough interrupts
for all channels.
This commit is contained in:
parent
9bf9ce8144
commit
eaf4f6fe69
1 changed files with 2 additions and 1 deletions
|
|
@ -416,7 +416,8 @@ ahci_setup_interrupt(device_t dev)
|
|||
else if (ctlr->numirqs == 1 || i >= ctlr->channels ||
|
||||
(ctlr->ccc && i == ctlr->cccv))
|
||||
ctlr->irqs[i].mode = AHCI_IRQ_MODE_ALL;
|
||||
else if (i == ctlr->numirqs - 1)
|
||||
else if (ctlr->channels > ctlr->numirqs &&
|
||||
i == ctlr->numirqs - 1)
|
||||
ctlr->irqs[i].mode = AHCI_IRQ_MODE_AFTER;
|
||||
else
|
||||
ctlr->irqs[i].mode = AHCI_IRQ_MODE_ONE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue