From 8aa894bc34c23235db682e7052382251565e41a8 Mon Sep 17 00:00:00 2001 From: Alex Kalmuk Date: Tue, 6 Apr 2021 20:46:29 +0300 Subject: [PATCH] Check for reaching pre_op state in firm_update --- test/linux/firm_update/firm_update.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/linux/firm_update/firm_update.c b/test/linux/firm_update/firm_update.c index 0cd511e..b59374f 100644 --- a/test/linux/firm_update/firm_update.c +++ b/test/linux/firm_update/firm_update.c @@ -63,6 +63,9 @@ void boottest(char *ifname, uint16 slave, char *filename) { printf("%d slaves found and configured.\n",ec_slavecount); + /* wait for all slaves to reach PRE_OP state */ + ec_statecheck(0, EC_STATE_PRE_OP, EC_TIMEOUTSTATE * 4); + printf("Request init state for slave %d\n", slave); ec_slave[slave].state = EC_STATE_INIT; ec_writestate(slave);