pci_decode: prefer MSI over MSI-x

Ref genodelabs/genode#4578
This commit is contained in:
Stefan Kalkowski 2022-10-07 11:17:09 +02:00 committed by Christian Helmuth
parent eb6a745a18
commit ba97415ef9

View File

@ -160,14 +160,14 @@ void Main::parse_pci_function(Bdf bdf,
if (supports_irq || supports_msi)
gen.node("irq", [&]
{
if (msi_capable && msi_x) {
gen.attribute("type", "msi-x");
if (msi_capable && msi) {
gen.attribute("type", "msi");
gen.attribute("number", msi_number++);
return;
}
if (msi_capable && msi) {
gen.attribute("type", "msi");
if (msi_capable && msi_x) {
gen.attribute("type", "msi-x");
gen.attribute("number", msi_number++);
return;
}