git: bb8fac1ee1fa - stable/13 - twsi: remove redundant enabling of the controller

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

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

commit bb8fac1ee1fa3347fbe8fa93d7a68aef64a131ec
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:12 +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;