mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
w1: ds2490 fix and enable hardware search
The hardware search was failing without the COMM_RST flag. Enabled the flag and rewrote the function to handle more than one buffer of results and to continuing where the search left off. Remove hardware search note from the limitations now that it works. The "w1: ds2490 USB setup fixes" change went from 23.16 seconds to about 3 seconds, this takes the time for the search down to .307346 seconds. Signed-off-by: David Fries <[email protected]> Acked-by: Evgeniy Polyakov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
da78b7e74a
commit
d53f0a2c05
2 changed files with 86 additions and 24 deletions
|
|
@ -21,8 +21,6 @@ Notes and limitations.
|
|||
- The weak pullup current is a minimum of 0.9mA and maximum of 6.0mA.
|
||||
- The 5V strong pullup is supported with a minimum of 5.9mA and a
|
||||
maximum of 30.4 mA. (From DS2490.pdf)
|
||||
- While the ds2490 supports a hardware search the code doesn't take
|
||||
advantage of it (in tested case it only returned first device).
|
||||
- The hardware will detect when devices are attached to the bus on the
|
||||
next bus (reset?) operation, however only a message is printed as
|
||||
the core w1 code doesn't make use of the information. Connecting
|
||||
|
|
|
|||
Loading…
Reference in a new issue