fix no update UfmProvisioned property
If the PFR mailbox is not on I2C4 or the address is not 0x38 on the I2C
bus, it cannot retrieve the provision state and set UfmLocked,
UfmProvisioned and UfmSupport properties to false.
After getting the correct I2C bus and address from the entity-manager,
where UfmLocked, UfmProvisioned, and UfmSupport D-Bus properties do not
update.
Tested: AST2700 DCSCM
```
root@ast2700-dcscm:~# busctl get-property
xyz.openbmc_project.PFR.Manager /xyz/openbmc_project/pfr
xyz.openbmc_project.PFR.Attributes UfmProvisioned
b true
```
Change-Id: Iaea4efb9cf355522c4e3f64097cdd894e9320627
Signed-off-by: Vince Chang <vince_chang@aspeedtech.com>
diff --git a/service/src/pfr_mgr.cpp b/service/src/pfr_mgr.cpp
index d31c14f..65e7114 100644
--- a/service/src/pfr_mgr.cpp
+++ b/service/src/pfr_mgr.cpp
@@ -146,7 +146,7 @@
pfrCfgIface->register_property(ufmProvisionedStr, ufmProvisioned,
// Override set
- [this](const bool req, bool propertyValue) {
+ [this](const bool req, bool& propertyValue) {
if (internalSet)
{
if (req != propertyValue)
@@ -161,7 +161,7 @@
pfrCfgIface->register_property(ufmLockedStr, ufmLocked,
// Override set
- [this](const bool req, bool propertyValue) {
+ [this](const bool req, bool& propertyValue) {
if (internalSet)
{
if (req != propertyValue)
@@ -176,7 +176,7 @@
pfrCfgIface->register_property(ufmSupportStr, ufmSupport,
// Override set
- [this](const bool req, bool propertyValue) {
+ [this](const bool req, bool& propertyValue) {
if (internalSet)
{
if (req != propertyValue)