
The current code in GenericHardware.evaluate_hardware_support ends up using hardware manager calls, which then use partly initialized hardware manager list and can even cause a recursion. This change introduces a new optional call initialize() which is guaranteed to run: 1) After all hardware managers have been evaluated 2) After the hardware manager cache is populated 3) In the order of the support level of hardware managers Change-Id: I068d3d73483c161062aa3b48f3154a2d99941382 Signed-off-by: Dmitry Tantsur <dtantsur@protonmail.com>
10 lines
471 B
YAML
10 lines
471 B
YAML
---
|
|
deprecations:
|
|
- |
|
|
Some hardware managers include complex initialization logic in their
|
|
``evaluate_hardware_support`` calls. This behavior could cause various
|
|
issues (such as recursion on attempt to invoke other hardware manager
|
|
calls) and is now deprecated. Please move the initialization login into
|
|
the new ``initialize`` call, which is guaranteed to run after all
|
|
hardware managers have been cached and only for enabled hardware managers.
|