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:
Alice Domage 2024-05-04 23:27:29 +02:00 committed by Christian Helmuth
parent 8a019c9bb9
commit 4bda9d9136

View File

@ -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);