diff options
author | Evgeniy Polyakov <johnpol@2ka.mipt.ru> | 2005-06-03 17:29:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-22 00:43:12 -0400 |
commit | 6adf87bd7b7832105b9c6bc08adf6a4d229f1e79 (patch) | |
tree | 1c6d17df3c4f4d753021e970a7bb898c1aabeb82 /drivers/w1/w1.h | |
parent | 4754639d88e922af451b399af09ac1bb442c35e5 (diff) |
[PATCH] w1: reconnect feature.
I've created reconnect feature - if on start there are no registered families
all new devices will have defailt family, later when driver for appropriate
family is loaded, slaves, which were faound earlier, will still have defult
family instead of right one. Reconnect feature will force control thread to run
through all master devices and all slaves found and search for slaves with
default family id and try to reconnect them.
It does not store newly registered family and does not check only those slaves
which have reg_num.family the same as being registered one - all slaves with
default family are reconnected.
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/w1/w1.h')
-rw-r--r-- | drivers/w1/w1.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/w1/w1.h b/drivers/w1/w1.h index 6b5f7be50b8a..4f0a986e33e3 100644 --- a/drivers/w1/w1.h +++ b/drivers/w1/w1.h | |||
@@ -151,6 +151,9 @@ struct w1_bus_master | |||
151 | void (*search)(unsigned long, w1_slave_found_callback); | 151 | void (*search)(unsigned long, w1_slave_found_callback); |
152 | }; | 152 | }; |
153 | 153 | ||
154 | #define W1_MASTER_NEED_EXIT 0 | ||
155 | #define W1_MASTER_NEED_RECONNECT 1 | ||
156 | |||
154 | struct w1_master | 157 | struct w1_master |
155 | { | 158 | { |
156 | struct list_head w1_master_entry; | 159 | struct list_head w1_master_entry; |
@@ -169,7 +172,8 @@ struct w1_master | |||
169 | void *priv; | 172 | void *priv; |
170 | int priv_size; | 173 | int priv_size; |
171 | 174 | ||
172 | int need_exit; | 175 | long flags; |
176 | |||
173 | pid_t kpid; | 177 | pid_t kpid; |
174 | struct semaphore mutex; | 178 | struct semaphore mutex; |
175 | 179 | ||