mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 14:00:54 +07:00
49695ac468
When we have success in 'Channel Access Write' but reading back latch states fails, a write is retried without doing a proper slave reset. This leads to protocol errors as the slave treats the next 'Channel Access Write' as the continuation of previous command. This commit is fixing this by making sure if the retry loop re-runs, a reset is performed, whatever the failure (CONFIRM_BYTE or the read back). The loop was quite due for a cleanup and this change mandated it. By isolating the CONFIG_W1_SLAVE_DS2408_READBACK case into it's own function, we vastly reduce the visual and branching(runtime and compile-time) noise. Reported-by: Mariusz Bialonczyk <manio@skyboo.net> Tested-by: Mariusz Bialonczyk <manio@skyboo.net> Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
w1_ds28e04.c | ||
w1_ds28e17.c | ||
w1_ds2405.c | ||
w1_ds2406.c | ||
w1_ds2408.c | ||
w1_ds2413.c | ||
w1_ds2423.c | ||
w1_ds2431.c | ||
w1_ds2433.c | ||
w1_ds2438.c | ||
w1_ds2780.c | ||
w1_ds2780.h | ||
w1_ds2781.c | ||
w1_ds2781.h | ||
w1_ds2805.c | ||
w1_smem.c | ||
w1_therm.c |