From dae2d940092520c839a0af00970b448ca4c36a88 Mon Sep 17 00:00:00 2001 From: Eddie James Date: Wed, 20 Dec 2017 10:50:03 -0600 Subject: Only add presence watching when all OCCs are bound The OCC present count returns the number of OCCs in the system. Before we have bound the second OCC, this will be greater than the number of OCCs the Manager has counted as Active, resulting in a mismatch, causing an error. Resolves openbmc/openbmc#2733 Change-Id: Ia37a6b152fb073cf3044c601501903bcdfe9d3fe Signed-off-by: Eddie James --- occ_status.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'occ_status.hpp') diff --git a/occ_status.hpp b/occ_status.hpp index 60134fb..d88ef6b 100644 --- a/occ_status.hpp +++ b/occ_status.hpp @@ -120,6 +120,12 @@ class Status : public Interface return device.removeErrorWatch(); } + /** @brief Starts to watch how many OCCs are present on the master */ + inline void addPresenceWatchMaster() + { + return device.addPresenceWatchMaster(); + } + private: /** @brief sdbus handle */ -- cgit v1.2.1