Commit 43f5d0e
fwk: lotus: avoid looping attempts to enter epr mode
Only reproduce 180w AC with 100W PD MFD hub
Since MFD Hub does not support epr mode, it will cause an
infinite loop to enter epr mode and assert prochot.
Enter_epr_mode(assert prochot)-> Retry 5 times -> timeout
3s(de-asssert prochot) -> enter_epr_mode -> .... loop
Add workaround avoid looping attempts to enter epr mode.
Unable to enter EPR mode after retrying 5 times, set the
epr_support flag to 0.
BUG=app.clickup.com/t/86enwhpg2
TEST=With 180w AC and 100W PD MFD hub, cpu not stuck at 500MHz
BRANCH=lotus
Signed-off-by: johnwc_yeh <[email protected]>1 parent 448e658 commit 43f5d0e
File tree
2 files changed
+32
-25
lines changed- zephyr/program/framework
- include
- src
2 files changed
+32
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| 469 | + | |
469 | 470 | | |
470 | 471 | | |
471 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
| 353 | + | |
355 | 354 | | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
359 | 379 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
381 | 385 | | |
382 | | - | |
383 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
384 | 389 | | |
385 | 390 | | |
386 | 391 | | |
| |||
1181 | 1186 | | |
1182 | 1187 | | |
1183 | 1188 | | |
| 1189 | + | |
1184 | 1190 | | |
1185 | 1191 | | |
1186 | 1192 | | |
| |||
0 commit comments