git: 74f175202c05 - stable/13 - twsi: remove redundant write of control register

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

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

commit 74f175202c0505a59792adf7ed65ed426d8e1bf6
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:30:48 +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: