Skip to content

Commit 1765d97

Browse files
Josh-TsaiJohnAZoidberg
authored andcommitted
fwk: UCSI: UCSI CCI uses wrong index, causing driver failure
The UCSI CCI pointer was using an invalid index (incorrect PD chip), which led to the UCSI driver displaying a "yellow bang". This commit corrects the index to ensure the UCSI driver can initialize and function normally. BRANCH=fwk-tulip-29169 BUG=UCSI driver displaying a "yellow bang" TEST=UCSI driver can initialize and function normally. Signed-off-by: Josh Tsai <Josh_Tsai@compal.com> (cherry picked from commit a6da69d54da8af34eab552f9e84a271dfa847778)
1 parent 1858a37 commit 1765d97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • zephyr/program/framework/src

zephyr/program/framework/src/ucsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ void check_ucsi_event_from_host(void)
576576
* both controllers
577577
*/
578578
if (ucsi_check_all_pd_status(OPERATOR_AND)) {
579-
for (i = 0; i <= PD_CHIP_COUNT; i++) {
579+
for (i = 0; i < PD_CHIP_COUNT; i++) {
580580
if (!cypd_contoller_is_powered(i))
581581
continue;
582582

0 commit comments

Comments
 (0)