diff -r df9b00bda8dc -r 6aaf77798445 master/fsm_master.c --- a/master/fsm_master.c Thu Aug 05 09:54:06 2010 +0200 +++ b/master/fsm_master.c Thu Sep 16 10:16:12 2010 +0200 @@ -85,7 +85,7 @@ fsm->idle = 0; fsm->link_state = 0; fsm->slaves_responding = 0; - fsm->topology_change_pending = 0; + fsm->rescan_required = 0; fsm->slave_states = EC_SLAVE_STATE_UNKNOWN; // init sub-state-machines @@ -201,7 +201,7 @@ // bus topology change? if (datagram->working_counter != fsm->slaves_responding) { - fsm->topology_change_pending = 1; + fsm->rescan_required = 1; fsm->slaves_responding = datagram->working_counter; EC_MASTER_INFO(master, "%u slave(s) responding.\n", fsm->slaves_responding); @@ -237,7 +237,7 @@ fsm->slave_states = 0x00; } - if (fsm->topology_change_pending) { + if (fsm->rescan_required) { down(&master->scan_sem); if (!master->allow_scan) { up(&master->scan_sem); @@ -245,9 +245,8 @@ master->scan_busy = 1; up(&master->scan_sem); - // topology change when scan is allowed: // clear all slaves and scan the bus - fsm->topology_change_pending = 0; + fsm->rescan_required = 0; fsm->idle = 0; fsm->scan_jiffies = jiffies; @@ -630,7 +629,7 @@ slave->error_flag = 1; EC_SLAVE_DBG(slave, 1, "Slave did not respond to state query.\n"); } - fsm->topology_change_pending = 1; + fsm->rescan_required = 1; ec_fsm_master_restart(fsm); return; }