meta-gbmc-staging: entity-manager: Increase FRU scan delay This CL increase the wait time to 3 seconds on receiving the power signal and performing the FRU scan. Tested: https://paste.googleplex.com/5869372272934912 Fusion-Link: (no fusion2 Real-HW) Google-Bug-Id: 469765424 Platforms-Affected: All Change-Id: I79e3741d3a0f43c339618a4c25765005a7837ea4 Signed-off-by: Muhammad Usama Chaudhry <muhammadusama@google.com> (cherry picked from commit 11cd39a5f992ba04b3c4c45469c69f93e04a637f)
diff --git a/recipes-phosphor/configuration/entity-manager/0009-fru-device-Increase-FRU-scan-wait-on-Power-signal.patch b/recipes-phosphor/configuration/entity-manager/0009-fru-device-Increase-FRU-scan-wait-on-Power-signal.patch new file mode 100644 index 0000000..cdcf108 --- /dev/null +++ b/recipes-phosphor/configuration/entity-manager/0009-fru-device-Increase-FRU-scan-wait-on-Power-signal.patch
@@ -0,0 +1,45 @@ +From a58dc40623eb9d1d26534a7a74fade2c4da2e2b6 Mon Sep 17 00:00:00 2001 +From: Muhammad Usama Chaudhry <muhammadusama@google.com> +Date: Fri, 2 Jan 2026 19:46:51 +0000 +Subject: [PATCH] fru-device: Increase FRU scan wait on Power signal + +Previously, the fru-device will only wait for 1 second after the +power signal is received. This CL will increase the time to 3 seconds +making the devices ready once the power is applied. + +Tested: Manually +Google-Bug-Id: 469765424 +Signed-off-by: Muhammad Usama Chaudhry <muhammadusama@google.com> +--- + src/fru_device.cpp | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/fru_device.cpp b/src/fru_device.cpp +index f686fae..aa1b549 100644 +--- a/src/fru_device.cpp ++++ b/src/fru_device.cpp +@@ -1187,10 +1187,10 @@ void rescanBusses( + std::shared_ptr<sdbusplus::asio::dbus_interface>>& dbusInterfaceMap, + size_t& unknownBusObjectCount, const bool& powerIsOn, + sdbusplus::asio::object_server& objServer, +- std::shared_ptr<sdbusplus::asio::connection>& systemBus) ++ std::shared_ptr<sdbusplus::asio::connection>& systemBus, std::chrono::seconds timeout = std::chrono::seconds(1)) + { + static boost::asio::steady_timer timer(io); +- timer.expires_from_now(std::chrono::seconds(1)); ++ timer.expires_from_now(std::chrono::seconds(timeout)); + + // setup an async wait in case we get flooded with requests + timer.async_wait([&](const boost::system::error_code& ec) { +@@ -1546,7 +1546,7 @@ int main() + if (powerIsOn) + { + rescanBusses(busMap, dbusInterfaceMap, unknownBusObjectCount, +- powerIsOn, objServer, systemBus); ++ powerIsOn, objServer, systemBus, std::chrono::seconds(3)); + } + }; + +-- +2.52.0.351.gbe84eed79e-goog +
diff --git a/recipes-phosphor/configuration/entity-manager_%.bbappend b/recipes-phosphor/configuration/entity-manager_%.bbappend index 5b6b2f8..7267afa 100644 --- a/recipes-phosphor/configuration/entity-manager_%.bbappend +++ b/recipes-phosphor/configuration/entity-manager_%.bbappend
@@ -15,6 +15,7 @@ file://0001-Strip-extra-spaces-from-fru.patch \ file://0001-Add-PropagateElementTo-Property-in-EM-Configs.patch \ file://0008-Add-excludedProps-to-filter-out-tlbmc-information.patch \ + file://0009-fru-device-Increase-FRU-scan-wait-on-Power-signal.patch \ file://scripts/config_preprocess.py \ file://scripts/config_preprocess_test.py \ "