Commit 7661088
fwk: azalea: re-apply fan duty before fan check to avoid false
Manually add PR #1791 to azalea branch.
Commit: da46d46
During S0 entry, project_diagnostics() schedules two deferred hooks:
start_fan_deferred at +500 ms (sets fan duty to 30%)
check_device_deferred at +2000 ms (verifies fan RPM > 100)
However, a platform reset occurs between these two events.
The reset causes the fan rpm to be < 100, so when the check device runs,
the fan is no longer spinning, and the RPM reading falls below 100.
This incorrectly triggers the DIAGNOSTICS_NOFAN flag even though the fan is functional.
Workaround:
On each platform reset, re-apply 30% fan duty only if device diagnostics have not completed.
BRANCH=fwk-sunflower-26784
BUG=https://app.clickup.com/t/86eva61n1
TEST=1. Set Boot Performance Mode = Max Battery then save and exit.
2. Shutdown the system then press power button to power on.
3. Did not show fan not present
Signed-off-by: LeoCX_Tsai <LeoCX_Tsai@compal.com>1 parent bdc3c69 commit 7661088
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments