• Evgeniy Polyakov's avatar
    w1: allow master IO commands · c7e26631
    Evgeniy Polyakov authored
    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: default avatarEvgeniy Polyakov <zbr@ioremap.net>
    Cc: Paul Alfille <paul.alfille@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    c7e26631
w1_netlink.c 8.75 KB