diff options
author | Dmitry Khromov <dk@icelogic.net> | 2015-05-12 15:29:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-24 15:08:59 -0400 |
commit | c3098356927254be270e5dc186a2ca144b64463b (patch) | |
tree | 940a4cbc322141f72c57507bc9867cf1489466a9 /Documentation/w1 | |
parent | 99b7e93c95c78952724a9783de6c78def8fbfc3f (diff) |
w1: introduce an ability to specify microseconds bus scanning intervals
Some of 1-Wire devices commonly associated with physical access control
systems are attached/generate presence for as short as 100 ms - hence
the tens-to-hundreds milliseconds scan intervals are required.
Signed-off-by: Dmitry Khromov <dk@icelogic.net>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/w1')
-rw-r--r-- | Documentation/w1/w1.generic | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/Documentation/w1/w1.generic b/Documentation/w1/w1.generic index b2033c64c7da..b3ffaf8cfab2 100644 --- a/Documentation/w1/w1.generic +++ b/Documentation/w1/w1.generic | |||
@@ -76,21 +76,24 @@ See struct w1_bus_master definition in w1.h for details. | |||
76 | 76 | ||
77 | w1 master sysfs interface | 77 | w1 master sysfs interface |
78 | ------------------------------------------------------------------ | 78 | ------------------------------------------------------------------ |
79 | <xx-xxxxxxxxxxxxx> - a directory for a found device. The format is family-serial | 79 | <xx-xxxxxxxxxxxxx> - A directory for a found device. The format is family-serial |
80 | bus - (standard) symlink to the w1 bus | 80 | bus - (standard) symlink to the w1 bus |
81 | driver - (standard) symlink to the w1 driver | 81 | driver - (standard) symlink to the w1 driver |
82 | w1_master_add - Manually register a slave device | 82 | w1_master_add - (rw) manually register a slave device |
83 | w1_master_attempts - the number of times a search was attempted | 83 | w1_master_attempts - (ro) the number of times a search was attempted |
84 | w1_master_max_slave_count | 84 | w1_master_max_slave_count |
85 | - maximum number of slaves to search for at a time | 85 | - (rw) maximum number of slaves to search for at a time |
86 | w1_master_name - the name of the device (w1_bus_masterX) | 86 | w1_master_name - (ro) the name of the device (w1_bus_masterX) |
87 | w1_master_pullup - 5V strong pullup 0 enabled, 1 disabled | 87 | w1_master_pullup - (rw) 5V strong pullup 0 enabled, 1 disabled |
88 | w1_master_remove - Manually remove a slave device | 88 | w1_master_remove - (rw) manually remove a slave device |
89 | w1_master_search - the number of searches left to do, -1=continual (default) | 89 | w1_master_search - (rw) the number of searches left to do, |
90 | -1=continual (default) | ||
90 | w1_master_slave_count | 91 | w1_master_slave_count |
91 | - the number of slaves found | 92 | - (ro) the number of slaves found |
92 | w1_master_slaves - the names of the slaves, one per line | 93 | w1_master_slaves - (ro) the names of the slaves, one per line |
93 | w1_master_timeout - the delay in seconds between searches | 94 | w1_master_timeout - (ro) the delay in seconds between searches |
95 | w1_master_timeout_us | ||
96 | - (ro) the delay in microseconds beetwen searches | ||
94 | 97 | ||
95 | If you have a w1 bus that never changes (you don't add or remove devices), | 98 | If you have a w1 bus that never changes (you don't add or remove devices), |
96 | you can set the module parameter search_count to a small positive number | 99 | you can set the module parameter search_count to a small positive number |
@@ -101,6 +104,11 @@ generally only make sense when searching is disabled, as a search will | |||
101 | redetect manually removed devices that are present and timeout manually | 104 | redetect manually removed devices that are present and timeout manually |
102 | added devices that aren't on the bus. | 105 | added devices that aren't on the bus. |
103 | 106 | ||
107 | Bus searches occur at an interval, specified as a summ of timeout and | ||
108 | timeout_us module parameters (either of which may be 0) for as long as | ||
109 | w1_master_search remains greater than 0 or is -1. Each search attempt | ||
110 | decrements w1_master_search by 1 (down to 0) and increments | ||
111 | w1_master_attempts by 1. | ||
104 | 112 | ||
105 | w1 slave sysfs interface | 113 | w1 slave sysfs interface |
106 | ------------------------------------------------------------------ | 114 | ------------------------------------------------------------------ |