Kernel/AHCI: Don't check for PCC during initialization

On my machine, it only sets PRC and not PCC.

Confirmed to happen on:
- 8086:9ca2 (Intel Corporation Wildcat Point-LP SATA Controller
[AHCI Mode] (rev 03))
This commit is contained in:
Luke 2021-05-14 23:37:38 +01:00 committed by Andreas Kling
parent 84fc498b9f
commit 0f35dfc694

View file

@ -64,7 +64,7 @@ void AHCIPort::handle_interrupt()
if (m_interrupt_status.raw_value() == 0) {
return;
}
if (m_interrupt_status.is_set(AHCI::PortInterruptFlag::PRC) && m_interrupt_status.is_set(AHCI::PortInterruptFlag::PC)) {
if (m_interrupt_status.is_set(AHCI::PortInterruptFlag::PRC)) {
clear_sata_error_register();
m_wait_connect_for_completion = true;
}