mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
pc_intel_fb_drv: enforce operation on Intel's devices
This commit enforces the driver to only wait for devices with Intel's vendors ID to be ready. genodelabs/genode#5207
This commit is contained in:
parent
8a019c9bb9
commit
4bda9d9136
@ -135,8 +135,17 @@ struct Framebuffer::Driver
|
||||
* reasons.
|
||||
*/
|
||||
Lx_kit::env().devices.for_each([](auto & device) {
|
||||
/* only enable graphic device and skip bridge, which has no irq atm */
|
||||
device.for_each_irq([&](auto &) { device.enable(); });
|
||||
/*
|
||||
* Only iterate over intel devices, other rendering devices might
|
||||
* be visibale depending on the policy filtering rule of
|
||||
* the platform driver.
|
||||
*/
|
||||
device.for_pci_config([&] (auto &cfg) {
|
||||
if (cfg.vendor_id == 0x8086) {
|
||||
/* only enable graphic device and skip bridge, which has no irq atm */
|
||||
device.for_each_irq([&](auto &) { device.enable(); });
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
config.sigh(config_handler);
|
||||
|
Loading…
Reference in New Issue
Block a user