[Pdbg] [PATCH 1/2] Make i2c backend possible on all ARM machines

Joel Stanley joel at jms.id.au
Wed Jun 13 16:40:53 AEST 2018


It's not only devices that have the AMI i2c path that can use pdbg over
i2c.

I chose not to plumb in the access check, as this can be done
when attempting to open the device (otherwise we're duplicating that
check).

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 src/options_arm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/options_arm.c b/src/options_arm.c
index 2936058ae684..72985d3e2f87 100644
--- a/src/options_arm.c
+++ b/src/options_arm.c
@@ -48,7 +48,7 @@ void print_backends(FILE *stream)
 
 bool backend_is_possible(enum backend backend)
 {
-	if (backend == I2C && access(AMI_BMC, F_OK) == 0)
+	if (backend == I2C)
 		return true;
 	if (backend == KERNEL && access(OPENFSI_BMC, F_OK) == 0)
 		return true;
-- 
2.17.1



More information about the Pdbg mailing list