Commit e9b421b
fwk: ucsi: do not process the ucsi if no active pd chip
If there is no active pd chip exist, the *cci and *message_in
will not point to the correct address and cause the EC panic.
This change adds the condition to avoid the data point to the wrong
address.
BRANCH=fwk-main
BUG=EC panic when process the ucsi data
TEST=EC will not process the ucsi data if no active pd chip.
Signed-off-by: Josh Tsai <Josh_Tsai@compal.com>
(cherry picked from commit de061e56e2ac5224c1b63a77197d49e7be34ae79)1 parent 4571be8 commit e9b421b
1 file changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
246 | 250 | | |
247 | 251 | | |
248 | 252 | | |
| |||
491 | 495 | | |
492 | 496 | | |
493 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
494 | 502 | | |
495 | 503 | | |
496 | 504 | | |
| |||
667 | 675 | | |
668 | 676 | | |
669 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
670 | 682 | | |
671 | 683 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
677 | 696 | | |
678 | 697 | | |
679 | 698 | | |
| 699 | + | |
0 commit comments