forked from Bananymous/banan-os
				
			Kernel: Don't manually clear xHCI interrupt flag if using MSI
This commit is contained in:
		
							parent
							
								
									22b32a0fe5
								
							
						
					
					
						commit
						11310e7615
					
				|  | @ -536,7 +536,8 @@ namespace Kernel | ||||||
| 	void XHCIController::handle_irq() | 	void XHCIController::handle_irq() | ||||||
| 	{ | 	{ | ||||||
| 		auto& primary_interrupter = runtime_regs().irs[0]; | 		auto& primary_interrupter = runtime_regs().irs[0]; | ||||||
| 		primary_interrupter.iman = primary_interrupter.iman | XHCI::IMAN::InterruptPending | XHCI::IMAN::InterruptEnable; | 		if (m_pci_device.interrupt_mechanism() != PCI::Device::InterruptMechanism::MSI && m_pci_device.interrupt_mechanism() != PCI::Device::InterruptMechanism::MSIX) | ||||||
|  | 			primary_interrupter.iman = primary_interrupter.iman | XHCI::IMAN::InterruptPending | XHCI::IMAN::InterruptEnable; | ||||||
| 
 | 
 | ||||||
| 		auto& operational = operational_regs(); | 		auto& operational = operational_regs(); | ||||||
| 		if (!(operational.usbsts & XHCI::USBSTS::EventInterrupt)) | 		if (!(operational.usbsts & XHCI::USBSTS::EventInterrupt)) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue