aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2021-11-26 08:09:59 +0000
committerAndriy Gapon <avg@FreeBSD.org>2021-11-26 14:18:30 +0000
commitaeacf172fd29b16b3661ff057c9abb238baba813 (patch)
tree30909d5b6f124880196be03e450f2f2a1e26eace
parent04622a7f21157827fe75276a4520a52d3a571a86 (diff)
downloadsrc-aeacf172fd29b16b3661ff057c9abb238baba813.tar.gz
src-aeacf172fd29b16b3661ff057c9abb238baba813.zip
twsi: remove redundant write of control register
The write at the end of twsi_intr() already handles all cases, no need to have another write for TWSI_STATUS_START / TWSI_STATUS_RPTD_START. MFC after: 3 weeks
-rw-r--r--sys/dev/iicbus/twsi/twsi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/iicbus/twsi/twsi.c b/sys/dev/iicbus/twsi/twsi.c
index 4a20d7ea35b6..b94396883be5 100644
--- a/sys/dev/iicbus/twsi/twsi.c
+++ b/sys/dev/iicbus/twsi/twsi.c
@@ -591,7 +591,6 @@ twsi_intr(void *arg)
else
TWSI_WRITE(sc, sc->reg_data,
sc->msgs[sc->msg_idx].slave & ~LSB);
- TWSI_WRITE(sc, sc->reg_control, sc->control_val);
break;
case TWSI_STATUS_ADDR_W_ACK: