w1: w1_therm: fixes w1_seq for ds28ea00 sensors
authorLucas Denefle <lucas.denefle@converge.io>
Wed, 23 Feb 2022 11:35:55 +0000 (11:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Apr 2022 12:18:35 +0000 (14:18 +0200)
commit96cdf2fdbe89150fbdadccc62b4937accef701fa
tree4c05c6bb56a3231187c10f02d866b75a9c22e460
parent823f0364d4a4472a1083b47357c4c45b97bce4af
w1: w1_therm: fixes w1_seq for ds28ea00 sensors

[ Upstream commit 41a92a89eee819298f805c40187ad8b02bb53426 ]

w1_seq was failing due to several devices responding to the
CHAIN_DONE at the same time. Now properly selects the current
device in the chain with MATCH_ROM. Also acknowledgment was
read twice.

Signed-off-by: Lucas Denefle <lucas.denefle@converge.io>
Link: https://lore.kernel.org/r/20220223113558.232750-1-lucas.denefle@converge.io
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/w1/slaves/w1_therm.c