Messages in this thread | | | Date | Mon, 28 Nov 2011 23:24:14 +0300 | From | Evgeniy Polyakov <> | Subject | Re: [PATCH] w1: add fast search for single slave bus |
| |
Hi
On Mon, Nov 28, 2011 at 09:06:47PM +0100, Hubert Feurstein (h.feurstein@gmail.com) wrote: > This enables a much more efficient way of device searching. It uses the > 1-wire read-rom operation which allows the direct reading of the slave > address. BUT this works only with exactly one slave on the bus.
Although idea may sound resonable, kernel is shipped with only one compiled option, and it is quite uncommon to recompile them. So this option will unlikely to be enabled. I would recommend to add either a module parameter to forbid multiple slave devices and use fast search, or use fast search when only one device exists and switch to common search when it fails (if it is possible to detect that there are multiple devices on the bus using fast search)
-- Evgeniy Polyakov
| |