From 3c7782bc7b8955ebf078533b7b258dff239dd9d4 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Wed, 9 Oct 2024 15:12:53 +0600 Subject: [PATCH] ALi 1543 USB IRQs now fixed --- src/chipset/ali1543.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chipset/ali1543.c b/src/chipset/ali1543.c index a8edc78930..fa57ccab40 100644 --- a/src/chipset/ali1543.c +++ b/src/chipset/ali1543.c @@ -1612,7 +1612,10 @@ ali5237_usb_pci_irq(void *priv, int level) { ali1543_t *dev = priv; - pci_set_mirq(PCI_MIRQ4, level, &dev->usb_irq_state); + if (level) + pci_set_mirq(PCI_MIRQ4, !(dev->pci_conf[0x77] & 0x10), &dev->usb_irq_state); + else + pci_clear_mirq(PCI_MIRQ4, !(dev->pci_conf[0x77] & 0x10), &dev->usb_irq_state); } static void *