# HG changeset patch # User Florian Pose # Date 1148047095 0 # Node ID 986afccca9eabd813b37c85c05ad148c4253804a # Parent 6dd3e49dbb8505825b11475d45e6bda5c252734a Link down treated as topology change in state machine. diff -r 6dd3e49dbb85 -r 986afccca9ea master/fsm.c --- a/master/fsm.c Fri May 19 13:39:35 2006 +0000 +++ b/master/fsm.c Fri May 19 13:58:15 2006 +0000 @@ -151,7 +151,6 @@ { ec_command_brd(&fsm->command, 0x0130, 2); ec_master_queue_command(fsm->master, &fsm->command); - fsm->master_state = ec_fsm_master_wait; } @@ -164,6 +163,9 @@ ec_slave_t *slave; if (command->state != EC_CMD_RECEIVED) { + if (!fsm->master->device->link_state) + // treat link down as topology change + fsm->master_slaves_responding = 0; fsm->master_state = ec_fsm_master_start; fsm->master_state(fsm); // execute immediately return;