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:
parent
7f04b2c96c
commit
a945d19750
|
@ -682,9 +682,9 @@ namespace Kernel::PCI
|
||||||
|
|
||||||
auto& prt_entry_fields = prt_entry.as.package->elements;
|
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)
|
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)
|
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);
|
auto ret = route_prt_entry(prt_entry);
|
||||||
if (!ret.is_error())
|
if (!ret.is_error())
|
||||||
|
|
Loading…
Reference in New Issue