sculpt_manager: check devices ROM before fb driver start

Issue #5174
This commit is contained in:
Christian Prochaska 2024-04-11 18:35:09 +02:00 committed by Christian Helmuth
parent 24d0c18193
commit 7fca026b48

View File

@ -62,8 +62,15 @@ class Sculpt::Drivers::Instance : Noncopyable,
{ {
_board_info.detected = Board_info::Detected::from_xml(devices, _board_info.detected = Board_info::Detected::from_xml(devices,
_platform.xml()); _platform.xml());
/*
* The decision which fb driver to start depends on information
* about available devices from both the devices ROM and the
* platform info ROM, so we skip the update if the devices ROM
* is not ready yet.
*/
if (!devices.has_type("empty"))
_fb_driver.update(_children, _board_info, _platform.xml());
_fb_driver .update(_children, _board_info, _platform.xml());
_ps2_driver .update(_children, _board_info); _ps2_driver .update(_children, _board_info);
_touch_driver.update(_children, _board_info); _touch_driver.update(_children, _board_info);
_ahci_driver .update(_children, _board_info); _ahci_driver .update(_children, _board_info);