Skip to content

Commit

Permalink
pc_intel_fb_drv: enforce operation on Intel's devices
Browse files Browse the repository at this point in the history
This commit enforces the driver to only wait for devices with Intel's
vendors ID to be ready.

#5207
  • Loading branch information
a-dmg authored and chelmuth committed May 7, 2024
1 parent 8a019c9 commit 4bda9d9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions repos/pc/src/drivers/framebuffer/intel/pc/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4bda9d9

Please sign in to comment.