Skip to content

Commit 67244ed

Browse files
committed
hw-mgmt: scripts: Fix for sodimm temp attribute
In the smart switch, the DPUs are having tmp421 sensor at slave address 0x1f. Sodimm temperature sensors have 0x1f as one of the supported slave addresses. During the dpu poweroff, udev events are sent for removing [18-21]-001f tmp421 sensor attributes. In the thermal-events script, sodimm attributes are also removed as the slave address is matching. This commit introduces a check to see if the device name is 'jc42' before removing any sodimm sensor attributes. Bugs #4691599 Signed-off-by: Ciju Rajan K <[email protected]>
1 parent f62cc01 commit 67244ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

usr/usr/bin/hw-management-thermal-events.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,6 +1463,10 @@ else
14631463
unlink $thermal_path/pch_temp
14641464
fi
14651465
if [ "$2" == "sodimm_temp" ]; then
1466+
name=$(< /sys/"$3"/name)
1467+
if [ "$name" != "jc42" ]; then
1468+
exit
1469+
fi
14661470
find "$thermal_path" -iname "sodimm*_temp*" -exec unlink {} \;
14671471
fi
14681472
if [ "$2" == "psu1" ] || [ "$2" == "psu2" ] ||

0 commit comments

Comments
 (0)