Skip to content

Commit d439158

Browse files
Josh-Tsaiquinchou77
authored andcommitted
fwk: fix wrong ucsi logic for one pd chip
With two pd chips, the ucsi function is well. But on the one pd chip system, the or logic is wrong and causes the infinite loop BRANCH=fwk-main BUG=None TEST=with device that has one type-C controller, UCSI works correctly Signed-off-by: Josh Tsai <Josh_Tsai@compal.com> (cherry picked from commit 95054c6)
1 parent 0239344 commit d439158

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
@@ -292,7 +292,7 @@ static int ucsi_check_all_pd_status(int operator)
292292
* In the or operator condition,
293293
* if one pd chip has completed the read tunnel, return true
294294
*/
295-
if (!pd_chip_ucsi_info[controller].read_tunnel_complete)
295+
if (pd_chip_ucsi_info[controller].read_tunnel_complete)
296296
return true;
297297
}
298298

0 commit comments

Comments
 (0)