mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
Kernel/AHCI: Shift the call to reset() for the WorkQueue
This commit is contained in:
parent
2ae9de77bb
commit
6440beeffe
1 changed files with 5 additions and 1 deletions
|
@ -102,7 +102,11 @@ void AHCIPort::handle_interrupt()
|
|||
m_wait_connect_for_completion = true;
|
||||
}
|
||||
if (m_interrupt_status.is_set(AHCI::PortInterruptFlag::INF)) {
|
||||
reset();
|
||||
// We need to defer the reset, because we can receive interrupts when
|
||||
// resetting the device.
|
||||
g_io_work->queue([this]() {
|
||||
reset();
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (m_interrupt_status.is_set(AHCI::PortInterruptFlag::IF) || m_interrupt_status.is_set(AHCI::PortInterruptFlag::TFE) || m_interrupt_status.is_set(AHCI::PortInterruptFlag::HBD) || m_interrupt_status.is_set(AHCI::PortInterruptFlag::HBF)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue