mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
muen: Skip MSI setup for devices with no IRQ
The sinfo API now also exports PCI devices without logical IRQs. Therefore, explicitly check interrupt count in get_msi_params() function and ignore such devices.
This commit is contained in:
parent
9e4ff8c196
commit
65f1100453
@ -72,6 +72,10 @@ bool Platform::get_msi_params(const addr_t mmconf, addr_t &address,
|
||||
error("error retrieving Muen info for device with SID ", Hex(sid));
|
||||
return false;
|
||||
}
|
||||
if (!dev_info.ir_count) {
|
||||
error("device ", Hex(sid), " has no IRQ assigned");
|
||||
return false;
|
||||
}
|
||||
if (!dev_info.msi_capable) {
|
||||
error("device ", Hex(sid), " not configured for MSI");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user