w1: added w1 reset command
Command which allows to reset the bus. 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>
This commit is contained in:

zatwierdzone przez
Linus Torvalds

rodzic
325a06fb13
commit
f89735c4e2
@@ -197,6 +197,9 @@ static int w1_process_command_master(struct w1_master *dev, struct cn_msg *req_m
|
||||
case W1_CMD_TOUCH:
|
||||
err = w1_process_command_io(dev, msg, hdr, cmd);
|
||||
break;
|
||||
case W1_CMD_RESET:
|
||||
err = w1_reset_bus(dev);
|
||||
break;
|
||||
default:
|
||||
cmd->res = EINVAL;
|
||||
cn_netlink_send(msg, 0, GFP_KERNEL);
|
||||
|
Reference in New Issue
Block a user