The branch main has been updated by avg:

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

commit bc02583c4dd65275da89838a723bd3514cb316cf
Author:     Andriy Gapon <a...@freebsd.org>
AuthorDate: 2021-11-26 07:28:18 +0000
Commit:     Andriy Gapon <a...@freebsd.org>
CommitDate: 2021-11-26 14:15:21 +0000

    twsi: remove redundant enabling of the controller
    
    MFC after:      2 weeks
---
 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;

Reply via email to