From 4a61900bc81b28440d9487321de0b7208fa27563 Mon Sep 17 00:00:00 2001 From: Michael Shych Date: Sun, 20 Aug 2023 11:57:33 +0000 Subject: [PATCH] hw-mgmt: scripts: add new reset ready attribute. New reset_attr_ready file is created and set to 1 when all reset cause links for this system are created. It can be used as a trigger in other services that they can check reset reason. Reviewed-by: Vadim Pasternak Signed-off-by: Michael Shych --- usr/usr/bin/hw-management.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/usr/bin/hw-management.sh b/usr/usr/bin/hw-management.sh index 5b4a72357..e57490367 100755 --- a/usr/usr/bin/hw-management.sh +++ b/usr/usr/bin/hw-management.sh @@ -101,7 +101,7 @@ nv4_rev_a1_pci_id=22a4 leakage_count=0 asic_chipup_retry=2 chipup_log_size=4096 -reset_dflt_attr_num=19 +reset_dflt_attr_num=18 # Topology description and driver specification for ambient sensors and for # ASIC I2C driver per system class. Specific system class is obtained from DMI @@ -1690,6 +1690,7 @@ msn_spc3_common() msn47xx_specific ;; esac + echo "$reset_dflt_attr_num" > $config_path/reset_attr_num } bf3_common()