Skip to content

Commit

Permalink
Fix OAKCDROM probe hangs on UHCI
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 committed Dec 4, 2024
1 parent 2059e62 commit b8d022b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb/usb_uhci_bochs.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ usb_uhci_update_irq(bx_uhci_core_t *hub)
level = 1;
}

if (hub->pci_conf[0xc1] & (1 << 5))
if ((hub->pci_conf[0xc1] & (1 << 5)) && !(hub->pci_conf[0xc0] & (1 << 4)))
pci_irq(PCI_IIRQ_BASE | PCI_INTD, 0, 0, level, &hub->irq_state);
else
pci_irq(PCI_IIRQ_BASE | PCI_INTD, 0, 0, 0, &hub->irq_state);
Expand Down

0 comments on commit b8d022b

Please sign in to comment.