git: 0b7df7aa093d - stable/12 - twsi: remove redundant write of control register

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

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

commit 0b7df7aa093d59341f7db12c703976a3698242ad
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-11-26 08:09:59 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2021-12-17 07:31:27 +0000

    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.
    
    (cherry picked from commit aeacf172fd29b16b3661ff057c9abb238baba813)
---
 sys/dev/iicbus/twsi/twsi.c | 1 -
 1 file changed, 1 deletion(-)

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: