w1: ds2413: add retry support to state_read()
authorMariusz Bialonczyk <manio@skyboo.net>
Mon, 20 May 2019 07:05:56 +0000 (09:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2019 18:21:43 +0000 (20:21 +0200)
commitc50d09a86172073f55ebac0b92ad5a75907d64e7
tree189a69b66881d9e208565777a07f50a8eee763ac
parentae2ee27aa985232f66421d7cd1c7f4b87c7dba7d
w1: ds2413: add retry support to state_read()

The state_read() was calling PIO_ACCESS_READ once and bail out if it
failed for this first time.
This commit is improving this to trying more times before it give up,
similarly as the write call is currently doing.

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