Searched hist:"20 bf2c1c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/dbus-sensors/src/ |
H A D | HwmonTempMain.cpp | 20bf2c1c Tue Sep 14 11:07:07 CDT 2021 Matt Spinler <spinler@us.ibm.com> HwmonTempSensor: Watch for InterfacesRemoved In the current code, if a temperature sensor is on a removable card and that card is removed, hwmontempsensor does not know it has been removed and will keep on trying to read the sensor, resulting in it reporting the sensor is in error state (Value = NaN and OperationalStatus.Functional = false). This isn't ideal because a) The device isn't in the system so why have a sensor for it and b) This error reading implies there is something wrong when there isn't. This commit adds support to remove the sensor from D-Bus when its entity manager configuration interface has been removed from D-Bus, which entity-manager will do when a currently passing probe statement no longer passes. This could happen, for example, when the EEPROM D-Bus property it was matching on is removed from D-Bus by the daemon that keeps EEPROM contents on D-Bus when it detects the EEPROM is no longer there. Tested: The D-Bus sensor lifetime matches the entity-manager configuration object lifetime. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I2946e9adf8995abbfa977128a06a5eca84fb46f5
|