Commit 3d416f2
fwk: dogwood: don't enter 5vsb when force to enable PSU
In this commit 871089f, I missed the
condition "force_enable_psu" to call power_5vsb_enter() and caused the
system to drop the power when the system enters suspend with force_enable_psu.
This change adds the logic to the power_5vsb_enter() function.
When the force_enable_psu flag is set, just return the function and do
not run the turn-off sequence.
BRANCH=fwk-dogwood-27111
BUG=https://app.clickup.com/t/86etpj066
TEST=Enable the "force_enable_psu", system can enter/exit from standby mode.
The PSU does not be turned off.
TEST=disable the "force_enable_psu", system can enter/exit from standby mode.
The PSU is turned off.
Signed-off-by: Josh Tsai <Josh_Tsai@compal.com>1 parent 1e368a6 commit 3d416f2
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
354 | 358 | | |
355 | 359 | | |
356 | 360 | | |
| |||
679 | 683 | | |
680 | 684 | | |
681 | 685 | | |
682 | | - | |
683 | | - | |
| 686 | + | |
684 | 687 | | |
685 | | - | |
| 688 | + | |
686 | 689 | | |
687 | 690 | | |
688 | 691 | | |
| |||
0 commit comments