Kernel: Partially fix PCI PIN interrupt routing

Don't fail early if the first device is not the one we are looking for
This commit is contained in:
Bananymous 2025-05-26 04:47:32 +03:00
parent 7f04b2c96c
commit a945d19750
1 changed files with 2 additions and 2 deletions

View File

@ -682,9 +682,9 @@ namespace Kernel::PCI
auto& prt_entry_fields = prt_entry.as.package->elements;
if (TRY(ACPI::AML::convert_node(TRY(prt_entry_fields[0].value.node->copy()), ACPI::AML::ConvInteger, -1)).as.integer.value != acpi_device_id)
return BAN::Error::from_errno(ENOENT);
continue;
if (TRY(ACPI::AML::convert_node(TRY(prt_entry_fields[1].value.node->copy()), ACPI::AML::ConvInteger, -1)).as.integer.value != acpi_pin)
return BAN::Error::from_errno(ENOENT);
continue;
auto ret = route_prt_entry(prt_entry);
if (!ret.is_error())