aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2021-11-26 07:28:18 +0000
committerAndriy Gapon <avg@FreeBSD.org>2021-11-26 14:15:21 +0000
commitbc02583c4dd65275da89838a723bd3514cb316cf (patch)
tree0701868d053d62771c2f5ce700844a05634b133c
parent69cfa60ddd4df814b507699f9bb7253ece054f40 (diff)
twsi: remove redundant enabling of the controller
MFC after: 2 weeks
-rw-r--r--sys/dev/iicbus/twsi/twsi.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/iicbus/twsi/twsi.c b/sys/dev/iicbus/twsi/twsi.c
index 552787874833..05f67786cad0 100644
--- a/sys/dev/iicbus/twsi/twsi.c
+++ b/sys/dev/iicbus/twsi/twsi.c
@@ -495,9 +495,6 @@ twsi_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs)
KASSERT(sc->transfer == 0,
("starting a transfer while another is active"));
- sc->control_val = TWSI_CONTROL_TWSIEN |
- TWSI_CONTROL_INTEN | TWSI_CONTROL_ACK;
- TWSI_WRITE(sc, sc->reg_control, sc->control_val);
debugf(sc, "transmitting %d messages\n", nmsgs);
debugf(sc, "status=%x\n", TWSI_READ(sc, sc->reg_status));
sc->nmsgs = nmsgs;