Skip to content

Commit

Permalink
hw-mgmt: thermal: Set PSU fan dir to "Unknown" if PSU FRU is broken
Browse files Browse the repository at this point in the history
Set PSU fan dir value to "Unknown" (value 2) if PSU FRU is broken

Signed-off-by: Oleksandr Shamray <[email protected]>
  • Loading branch information
sholeksandr committed Jul 17, 2024
1 parent 66c10ac commit 580b328
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr/usr/bin/hw-management-thermal-events.sh
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,8 @@ if [ "$1" == "add" ]; then
exit 0
fi
echo "Failed to read PSU VPD" > $eeprom_path/"$psu_name"_vpd
# Set "Unknown fan dir in case failed to read PSU VPD.
echo 2 > "$thermal_path"/"$psu_name"_fan_dir
exit 0
else
# Add PSU FAN speed info.
Expand Down

0 comments on commit 580b328

Please sign in to comment.