Skip to content

Commit

Permalink
fbep: Fix ASIC present while checking power brake event (#2441)
Browse files Browse the repository at this point in the history
Summary:
It was reversed

Pull Request resolved: facebookexternal/openbmc.quanta#2441

Test Plan: Build fbep pass

Reviewed By: GoldenBug

fbshipit-source-id: bcfa17551b
  • Loading branch information
amithash authored and facebook-github-bot committed Apr 6, 2021
1 parent bcaa049 commit a0fd123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta-facebook/meta-fbep/recipes-fbep/gpiod/files/gpiod.c
Expand Up @@ -301,7 +301,7 @@ int check_pwr_brake()
goto exit;

for (i = 0; i < 8; i++) {
if (!is_asic_prsnt(7-i))
if (!is_asic_prsnt(i))
continue;

value = rbuf[0] & (0x1 << i);
Expand Down

0 comments on commit a0fd123

Please sign in to comment.