summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAkira Shimahara <akira215corp@gmail.com>2020-05-11 22:36:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-15 16:28:58 +0200
commitc8ad65f6fbfdcb9b620674ef456020eef2bfeb36 (patch)
tree8cd0819c7c8e409d093bba35e481131a431c8bc6 /include
parentw1_therm: adding code comments and code reordering (diff)
downloadlinux-c8ad65f6fbfdcb9b620674ef456020eef2bfeb36.tar.xz
linux-c8ad65f6fbfdcb9b620674ef456020eef2bfeb36.zip
w1_therm: fix reset_select_slave during discovery
Fix reset_select_slave issue during devices discovery by the master on bus. The w1_reset_select_slave() from w1_io.c, which was previously used, assume that if the slave count is 1 there is only one slave attached on the bus. This is not always true. For example when discovering devices, when the first device is discover by the bus master, its slave count is 1, but some other slaves may be on the bus. In that case instead of adressing command to the attached slave the master throw a SKIP ROM command so that all slaves attached on the bus will answer simultenaously causing data collision. A dedicated reset_select_slave() function is implemented here, it always perform an adressing to each slave using the MATCH ROM command. Signed-off-by: Akira Shimahara <akira215corp@gmail.com> Link: https://lore.kernel.org/r/20200511203610.409975-1-akira215corp@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions