w1: ds2413: when the slave is not responding during read, select it again
authorMariusz Bialonczyk <manio@skyboo.net>
Wed, 22 May 2019 10:40:53 +0000 (12:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2019 18:21:44 +0000 (20:21 +0200)
commit3856032a0628e6b94badb9131a706dda185e071d
tree74eda18082f35b4c7c8f4887422902adafd04788
parentc50d09a86172073f55ebac0b92ad5a75907d64e7
w1: ds2413: when the slave is not responding during read, select it again

The protocol is not allowing to obtain a byte of 0xff for PIO_ACCESS_READ
call. It is very likely that the slave was not addressed properly and
it is just not respoding (leaving the bus in logic high state) during
the read of sampled PIO value.
We cannot just call w1_reset_resume_command() because the problem will
persist, instead try selecting (addressing) the slave again.

Signed-off-by: Mariusz Bialonczyk <manio@skyboo.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_ds2413.c