git: debb15c63d62 - stable/12 - twsi: remove redundant enabling of the controller

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Fri, 10 Dec 2021 12:31:24 UTC
The branch stable/12 has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=debb15c63d626ff0568d10e2e7547a5b1cb9d24b

commit debb15c63d626ff0568d10e2e7547a5b1cb9d24b
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-11-26 07:28:18 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2021-12-10 12:30:47 +0000

    twsi: remove redundant enabling of the controller
    
    (cherry picked from commit bc02583c4dd65275da89838a723bd3514cb316cf)
---
 sys/dev/iicbus/twsi/twsi.c | 3 ---
 1 file changed, 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;