master/master.c
branchstable-1.5
changeset 2115 2ec1239216e5
parent 2114 b91bb9b96823
child 2124 c4afc5fede19
--- a/master/master.c	Fri Sep 16 12:44:54 2011 +0200
+++ b/master/master.c	Fri Sep 16 14:10:23 2011 +0200
@@ -158,7 +158,6 @@
     init_waitqueue_head(&master->scan_queue);
 
     master->config_busy = 0;
-    master->allow_config = 1;
     sema_init(&master->config_sem, 1);
     init_waitqueue_head(&master->config_queue);
     
@@ -594,7 +593,6 @@
     EC_MASTER_DBG(master, 1, "IDLE -> OPERATION.\n");
 
     down(&master->config_sem);
-    master->allow_config = 0; // temporarily disable slave configuration
     if (master->config_busy) {
         up(&master->config_sem);
 
@@ -655,7 +653,6 @@
     
 out_allow:
     master->allow_scan = 1;
-    master->allow_config = 1;
     return ret;
 }
 
@@ -2013,7 +2010,6 @@
         return ret;
     }
 
-    master->allow_config = 1; // request the current configuration
     master->allow_scan = 1; // allow re-scanning on topology change
     master->active = 1;
 
@@ -2087,7 +2083,6 @@
         EC_MASTER_WARN(master, "Failed to restart master thread!\n");
 
     master->allow_scan = 1;
-    master->allow_config = 1;
     master->active = 0;
 }