linux-stable/drivers/w1
Mariusz Bialonczyk 62909da8ac w1: fix the resume command API
>From the DS2408 datasheet [1]:
"Resume Command function checks the status of the RC flag and, if it is set,
 directly transfers control to the control functions, similar to a Skip ROM
 command. The only way to set the RC flag is through successfully executing
 the Match ROM, Search ROM, Conditional Search ROM, or Overdrive-Match ROM
 command"

The function currently works perfectly fine in a multidrop bus, but when we
have only a single slave connected, then only a Skip ROM is used and Match
ROM is not called at all. This is leading to problems e.g. with single one
DS2408 connected, as the Resume Command is not working properly and the
device is responding with failing results after the Resume Command.

This commit is fixing this by using a Skip ROM instead in those cases.
The bandwidth / performance advantage is exactly the same.

Refs:
[1] https://datasheets.maximintegrated.com/en/ds/DS2408.pdf

Signed-off-by: Mariusz Bialonczyk <manio@skyboo.net>
Reviewed-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-27 15:34:55 +02:00
..
masters w1: ds2482: cosmetic fixes after 54865314f5 2019-03-28 02:20:33 +09:00
slaves w1: ds2408: reset on output_write retry with readback 2019-04-25 19:41:27 +02:00
Kconfig treewide: surround Kconfig file paths with double quotes 2018-12-22 00:25:54 +09:00
Makefile
w1.c w1: core: match sub-nodes of bus masters in devicetree 2018-07-11 18:09:08 +02:00
w1_family.c w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_int.c w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_internal.h w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_io.c w1: fix the resume command API 2019-04-27 15:34:55 +02:00
w1_netlink.c w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_netlink.h w1_netlink.h: add support for nested structs 2017-12-21 13:41:47 -07:00