Skip to content

Commit 77b9ef3

Browse files
committed
hw-mgmt: topo: Fix reset_ready not set for qm3401_LD system
For qm3401_LD we have only 17 reset causes. But defined 18. In this case reset_ready not set because real reset_cause lower then defined. Fix: change reset_attr_num attribute in ./config 18 -> 17. Bug: 4577722 Signed-off-by: Oleksandr Shamray <[email protected]>
1 parent a5520e4 commit 77b9ef3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

usr/usr/bin/hw-management.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ chipup_log_size=4096
116116
reset_dflt_attr_num=18
117117
smart_switch_reset_attr_num=17
118118
n51xx_reset_attr_num=22
119+
q3401_reset_attr_num=17
119120
chipup_retry_count=3
120121
fan_speed_tolerance=15
121122
minimal_unsupported=0
@@ -2321,6 +2322,7 @@ qm3xxx_specific()
23212322
add_come_named_busses $xdr_cpu_bus_offset
23222323
echo -n "${named_busses[@]}" > $config_path/named_busses
23232324
echo 0 > "$config_path"/labels_ready
2325+
echo "$reset_dflt_attr_num" > $config_path/reset_attr_num
23242326
}
23252327

23262328
qm3xx1_specific()
@@ -2368,6 +2370,7 @@ qm3xx1_specific()
23682370
add_come_named_busses $xdr_cpu_bus_offset
23692371
echo -n "${named_busses[@]}" > $config_path/named_busses
23702372
echo 0 > "$config_path"/labels_ready
2373+
echo $q3401_reset_attr_num > $config_path/reset_attr_num
23712374
}
23722375

23732376
qm_qm3_common()
@@ -2389,7 +2392,6 @@ qm_qm3_common()
23892392
qm3xxx_specific
23902393
;;
23912394
esac
2392-
echo "$reset_dflt_attr_num" > $config_path/reset_attr_num
23932395
}
23942396

23952397
smart_switch_common()

0 commit comments

Comments
 (0)