mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
Kernel/USB: Ignore shared IRQs
According the USB spec/UHCI datasheet (as well as the Linux and BSD source code), if we receive an IRQ and USBSTS is 0, then the IRQ does not belong to us and we should immediately jump out of the handler.
This commit is contained in:
parent
770a729e59
commit
ff4afe17be
1 changed files with 4 additions and 0 deletions
|
@ -395,6 +395,10 @@ void UHCIController::spawn_port_proc()
|
|||
|
||||
void UHCIController::handle_irq(const RegisterState&)
|
||||
{
|
||||
// Shared IRQ. Not ours!
|
||||
if(!read_usbsts())
|
||||
return;
|
||||
|
||||
klog() << "UHCI: Interrupt happened!";
|
||||
klog() << "Value of USBSTS: " << read_usbsts();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue