The patch titled Subject: w1: add fast search for single slave bus has been added to the -mm tree. Its filename is w1-add-fast-search-for-single-slave-bus.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Hubert Feurstein <h.feurstein@xxxxxxxxx> Subject: w1: add fast search for single slave bus 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. Signed-off-by: Hubert Feurstein <h.feurstein@xxxxxxxxx> Acked-by: Evgeniy Polyakov <zbr@xxxxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Cc: Jean-Franois Dagenais <dagenaisj@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/w1/w1.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff -puN drivers/w1/w1.c~w1-add-fast-search-for-single-slave-bus drivers/w1/w1.c --- a/drivers/w1/w1.c~w1-add-fast-search-for-single-slave-bus +++ a/drivers/w1/w1.c @@ -902,6 +902,16 @@ void w1_search(struct w1_master *dev, u8 break; } + /* Do fast search on single slave bus */ + if (dev->max_slave_count == 1) { + w1_write_8(dev, W1_READ_ROM); + + if (w1_read_block(dev, (u8 *)&rn, 8) == 8 && rn) + cb(dev, rn); + + break; + } + /* Start the search */ w1_write_8(dev, search_type); for (i = 0; i < 64; ++i) { _ Subject: Subject: w1: add fast search for single slave bus Patches currently in -mm which might be from h.feurstein@xxxxxxxxx are w1-add-fast-search-for-single-slave-bus.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html