From a0fd123cd8824cca3248eafe551e9330422e6931 Mon Sep 17 00:00:00 2001 From: Amithash Prasad Date: Tue, 6 Apr 2021 10:48:41 -0700 Subject: [PATCH] fbep: Fix ASIC present while checking power brake event (#2441) Summary: It was reversed Pull Request resolved: https://github.com/facebookexternal/openbmc.quanta/pull/2441 Test Plan: Build fbep pass Reviewed By: GoldenBug fbshipit-source-id: bcfa17551b --- meta-facebook/meta-fbep/recipes-fbep/gpiod/files/gpiod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-facebook/meta-fbep/recipes-fbep/gpiod/files/gpiod.c b/meta-facebook/meta-fbep/recipes-fbep/gpiod/files/gpiod.c index fb7dcdc263e..b930276883c 100755 --- a/meta-facebook/meta-fbep/recipes-fbep/gpiod/files/gpiod.c +++ b/meta-facebook/meta-fbep/recipes-fbep/gpiod/files/gpiod.c @@ -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);