intel/display: delay until graphic device is ready

Issue #5180
This commit is contained in:
Alexander Boettcher 2024-04-19 13:02:17 +02:00 committed by Norman Feske
parent 0b3cc37258
commit 53230d39f4

View File

@ -120,6 +120,18 @@ struct Framebuffer::Driver
{
Lx_kit::initialize(env, scheduler_handler);
/*
* Delay startup of driver until graphic device is available.
* After resume it is possible, that no device is instantly available.
* This ported Linux driver hangs up otherwise, when the delayed
* Device announcement is handled later inside the lx_kit for unknown
* 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(); });
});
config.sigh(config_handler);
}