]> git.baikalelectronics.ru Git - kernel.git/commit
w1: allow master IO commands
authorEvgeniy Polyakov <zbr@ioremap.net>
Thu, 8 Jan 2009 02:09:03 +0000 (18:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 Jan 2009 16:31:13 +0000 (08:31 -0800)
commit3cb9aa531f527c9bdc71c7c148bcd20bdb14a46c
tree6f8099b1481af05c0a34d943bba71f4f2a647c3a
parent200b62477d4974c0f5de7ecbdcf5b474c60693eb
w1: allow master IO commands

This small patchset extendes existing commands with reset, master IO and
status messages.  Reset is used to reset the bus for given master device,
master IO command allows to initiate IO against bus itself not selecting
slave device first, which can be used to probe the device for example.
And status messages carry command completion status back to the userspace
(namely very useful to get -ENODEV from when requested device was not
found).

Great thanks to Paul Alfille of OWFS for testing and commands suggestions.

This patch:

Allow starting of IO not against already found slave devices, but against
the bus itself, which can be used for example to probe devices.

[akpm@linux-foundation.org: reindent switch statements]
Signed-off-by: Evgeniy Polyakov <zbr@ioremap.net>
Cc: Paul Alfille <paul.alfille@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/w1_netlink.c