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

Message ID 20180613064054.20625-2-joel@jms.id.au
State Accepted
Headers show
Series
  • Restore OpenBMC P8 support
Related show

Commit Message

Joel Stanley June 13, 2018, 6:40 a.m.
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@jms.id.au>
---
 src/options_arm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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;