From b8d022b3e45369eb45c469ad5459d2dce26ecff3 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Thu, 5 Dec 2024 01:12:19 +0600 Subject: [PATCH] Fix OAKCDROM probe hangs on UHCI --- src/usb/usb_uhci_bochs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb/usb_uhci_bochs.c b/src/usb/usb_uhci_bochs.c index 508d98fa4b..ee820e275e 100644 --- a/src/usb/usb_uhci_bochs.c +++ b/src/usb/usb_uhci_bochs.c @@ -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);