From nobody Fri Nov 26 14:23:55 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8B81218A2730; Fri, 26 Nov 2021 14:23:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J0xnR5ClWz4c61; Fri, 26 Nov 2021 14:23:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6E5852053; Fri, 26 Nov 2021 14:23:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AQENttk002318; Fri, 26 Nov 2021 14:23:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AQENtfo002317; Fri, 26 Nov 2021 14:23:55 GMT (envelope-from git) Date: Fri, 26 Nov 2021 14:23:55 GMT Message-Id: <202111261423.1AQENtfo002317@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andriy Gapon Subject: git: f00bc54f62c4 - main - twsi: remove write-only softc field List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f00bc54f62c455c7ed44afee736c3c64873a305a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637936635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mc8ncfeeX2iBz3Ravdn8hh+Js9TCsbLVKZcinNWOnrY=; b=SA4Dzfv0kTwohg55IuiQqBX3Xv54OaEC8fUZkA9YV24Yfphuzu0hVuQOb2MVQLUckfGX+u bLJ7FxeuQGR1racPjGAKkqEUzwkDUPqhyxwrPDfOF4TVc7n0TLB3xWrEUuai6i8JCS0CkS +/v9a4rkL4kGu+eVL95ObuDhl0trFJAITsZq27zI9ZWeMYHb4XIYL9QlkdqK2etP6cYnlI c2ciu/uT58QXyVFd2GTADlsIqpcdYMrfzlH1Oa90G5PAv/e/2nxfURXixllWFryNdRbEXQ jWseL6u+R3vTwEFoAXLyoG9jtTsDoFXW6/ByHb7yyZDDlaD81M2A8Tx0rgRFvQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637936635; a=rsa-sha256; cv=none; b=hnOX3gc4LJB5hIsypXbEmqcdCi57Cdi+eB8S1l1vHZ4j1x1BwKIoodVTJBjimIcYxs1mqC 0CGsyMyMK1VVQQNQd94v6WF1T8kX/XjXQJUbD9zOcdG7i4Qoy8PjAwCoqFWunUEdEUbpAV hTsKa7bTM2lodJcxRw2+IyK5OY3+3+qN+9YQqeiJlJQK9rxRQK/iHwjA0VYWfFLLvK14ui ruD2/+xaLzY8FPccJnOBLuHp9CNPm/l2eXORjrBdDRiVbiRl/4MFoFGHViGHlLIP7Dp5x2 8cCGq/XDmTcrYNCwvtobx2Be9cg/lscEoBUOE2WZntKArptdXSVPisLBxO143w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=f00bc54f62c455c7ed44afee736c3c64873a305a commit f00bc54f62c455c7ed44afee736c3c64873a305a Author: Andriy Gapon AuthorDate: 2021-11-26 06:45:12 +0000 Commit: Andriy Gapon CommitDate: 2021-11-26 14:04:14 +0000 twsi: remove write-only softc field MFC after: 1 week --- sys/dev/iicbus/twsi/a10_twsi.c | 2 -- sys/dev/iicbus/twsi/twsi.h | 1 - 2 files changed, 3 deletions(-) diff --git a/sys/dev/iicbus/twsi/a10_twsi.c b/sys/dev/iicbus/twsi/a10_twsi.c index 17f551f27234..7554db0fbc94 100644 --- a/sys/dev/iicbus/twsi/a10_twsi.c +++ b/sys/dev/iicbus/twsi/a10_twsi.c @@ -121,8 +121,6 @@ a10_twsi_attach(device_t dev) sc->reg_baud_rate = TWI_CCR; sc->reg_soft_reset = TWI_SRST; - sc->need_ack = true; - if (ofw_bus_is_compatible(dev, "allwinner,sun6i-a31-i2c") || ofw_bus_is_compatible(dev, "allwinner,sun6i-a83t-i2c")) sc->iflag_w1c = true; diff --git a/sys/dev/iicbus/twsi/twsi.h b/sys/dev/iicbus/twsi/twsi.h index 631486fb3f0c..b10ce45be6f4 100644 --- a/sys/dev/iicbus/twsi/twsi.h +++ b/sys/dev/iicbus/twsi/twsi.h @@ -65,7 +65,6 @@ struct twsi_softc { int transfer; int error; uint32_t control_val; - bool need_ack; bool iflag_w1c; bus_size_t reg_data;