Commit 2910137
fwk: dogwood: Set the S0ix enter/exit flags correctly
Sometimes, the system will enter and resume S0ix several times within a
tick time (200ms). EC should set the flags in the correct state.
E.g., If the EC chipset state is in S0ix and the system resumes S0ix and
then enters again, the final memmap (EC_CUSTOMIZED_MEMMAP_POWER_STATE)
is EC_PS_ENTER_S0ix. In this case, EC should not set the enter_ms_flag.
BRANCH=fwk-dogwood-27111
BUG=https://app.clickup.com/t/86eu5ttc4
TEST=let system enter S0ix state, use the ec console command
"memmap set 0x101 0x40", and the press power button to
resume the system. Check the power LED is on and EC power
state is S0.
Signed-off-by: Josh Tsai <Josh_Tsai@compal.com>1 parent 2d45c86 commit 2910137
1 file changed
+20
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
| 267 | + | |
270 | 268 | | |
271 | 269 | | |
272 | 270 | | |
| |||
279 | 277 | | |
280 | 278 | | |
281 | 279 | | |
282 | | - | |
283 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
284 | 286 | | |
285 | | - | |
286 | | - | |
| 287 | + | |
| 288 | + | |
287 | 289 | | |
288 | | - | |
289 | | - | |
| 290 | + | |
| 291 | + | |
290 | 292 | | |
291 | 293 | | |
292 | 294 | | |
| |||
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
301 | | - | |
| 303 | + | |
302 | 304 | | |
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
306 | | - | |
307 | | - | |
308 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
309 | 311 | | |
310 | 312 | | |
311 | 313 | | |
| |||
321 | 323 | | |
322 | 324 | | |
323 | 325 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | 326 | | |
330 | 327 | | |
331 | 328 | | |
| |||
827 | 824 | | |
828 | 825 | | |
829 | 826 | | |
830 | | - | |
831 | | - | |
| 827 | + | |
| 828 | + | |
832 | 829 | | |
833 | 830 | | |
834 | 831 | | |
| |||
837 | 834 | | |
838 | 835 | | |
839 | 836 | | |
840 | | - | |
841 | | - | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
842 | 840 | | |
843 | 841 | | |
844 | 842 | | |
| |||
0 commit comments