commit | 5207b7c04f47966d8de01527279b80a11e4ff7de | [log] [tgz] |
---|---|---|
author | Kao.Benson <kao.benson@inventec.corp-partner.google.com> | Thu Aug 29 13:13:42 2024 +0800 |
committer | Munawar Hussain <munawarhussain@google.com> | Fri Aug 30 16:28:38 2024 +0000 |
tree | ea01740993bb2c6364dd2d0d404ba1cca49cc710 | |
parent | 085890069c836fe25268e10164f44967c0e282dc [diff] |
dbus-sensors: Corrected condition check for object existence Tested: confirm sdr list in every AC cycle :~# ipmitool sdr list CPU_PROCHOT | 0x00 | ok FAN_BRD_CABLE | 0x00 | ok FAN_P54V_CABLE | 0x00 | ok HSBP_CABLE | 0x00 | ok HSBP_P12V_STBY_2 | 0x00 | ok NCSI_PRSNT | 0x00 | ok PG_ALL_FAN | 0x00 | ok PG_P3V3_STBY_HSB | 0x00 | ok PG_P3V3_STBY_U2 | 0x00 | ok PG_P12V_DDR_ABD | 0x00 | ok PG_P12V_DDR_EFH | 0x00 | ok PG_P12V_PE0 | 0x00 | ok PG_P12V_PE1 | 0x00 | ok PG_P12V_PE2 | 0x00 | ok SLIMSAS_00_CABLE | 0x00 | ok SLIMSAS_01_CABLE | 0x00 | ok SLIMSAS_02_CABLE | 0x00 | ok SLIMSAS_03_CABLE | 0x00 | ok THERMTRIP | 0x00 | ok Test-Report-Link: https://drive.google.com/drive/folders/1rKiaZKcVBwBp6rMA7gQ_4bvnkQC3xhGF?usp=drive_link Fusion-Link: https://fusion2.corp.google.com/df15af80-ffd2-3500-ba3e-b17a47511b2c (platform5) https://fusion2.corp.google.com/c5adb54c-e8e0-3455-91e5-a2ccd9bc11e1 (platform11) Google-Bug-Id: 362208338 Change-Id: I9c4f55a7757bb2e9c92cf2c46779e5c20d835a36 Signed-off-by: Kao.Benson <kao.benson@inventec.corp-partner.google.com>
diff --git a/recipes-phosphor/sensors/dbus-sensors/0003-gpiosensor-a-dedicated-daemon-to-report-gpio-status-.patch b/recipes-phosphor/sensors/dbus-sensors/0003-gpiosensor-a-dedicated-daemon-to-report-gpio-status-.patch index 29b02e4..aa6c60d 100644 --- a/recipes-phosphor/sensors/dbus-sensors/0003-gpiosensor-a-dedicated-daemon-to-report-gpio-status-.patch +++ b/recipes-phosphor/sensors/dbus-sensors/0003-gpiosensor-a-dedicated-daemon-to-report-gpio-status-.patch
@@ -597,7 +597,7 @@ + gpiopresencesensing::inventoryObjPath); + sdbusplus::message::object_path objPath = inventoryPath / config.name; + std::cout << "New config received " << objPath.str << std::endl; -+ if (!controller->hasObj(objPath.str)) ++ if (controller->hasObj(objPath.str)) + { + controller->removeObj(objPath.str); + }