From nobody Fri Dec 10 12:30:19 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 7587C18CFF18; Fri, 10 Dec 2021 12:30:20 +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 4J9Vbw0R4dz3rZd; Fri, 10 Dec 2021 12:30:20 +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 E3A3C1A629; Fri, 10 Dec 2021 12:30:19 +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 1BACUJ0S063956; Fri, 10 Dec 2021 12:30:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BACUJ7i063953; Fri, 10 Dec 2021 12:30:19 GMT (envelope-from git) Date: Fri, 10 Dec 2021 12:30:19 GMT Message-Id: <202112101230.1BACUJ7i063953@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: bb8fac1ee1fa - stable/13 - twsi: remove redundant enabling of the controller 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/stable/13 X-Git-Reftype: branch X-Git-Commit: bb8fac1ee1fa3347fbe8fa93d7a68aef64a131ec Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639139420; 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=KgvsTHLBOl4wtY7iu2OTwZj46qzGhQx4/V253UuIwlY=; b=E8dOJrn49Sb5v8w+4dikWc7lflQVIMYPQeuD39c7CMmWliwzEgMeXHfgYmEiSgQBkpjVxL vrmH75lpd25I44VT44nIVjaNp3Ue0HCDAfb8OvSB/a6dTQQRLqmvvs5suvawQmN8s0fnIJ 1DVRGPd6u7E162vdv0UFysUF7HXUEFqSwLTGiqINDEM0vsQ5yxBOiZStcVIv2UCYbbgTpf I+yd1g/yJU7ZnkRux5t1/YL0w/C0/lTjpK6NOqXKDdPcB/Ce2x7RypKfsLN95KymdEkzSU M2SFoGCvyrpss8d1ALTvMfQbGFyKB5G/MYPkCFFQZK5Q03b6dUAqZFeSu/zeqw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639139420; a=rsa-sha256; cv=none; b=gjPrigO0kQh5d934tJyY0NgmEmF9C3Xw1qLgDYVznK1qKHkScg8Kl2if5sniJlYucdl8wf aB6OuvdpAc4BY+YkI4iSzzU5C2XWq7aKJ7qCRwJbGFDp7RQinl9K8TGGWdbfUofoQb7Puy Occ32SMMi+6Q8GMJh2adyYtnUzhgfNWxP6kw0kREDWnJXYN7buCH9bSFNBNXtO7XSKe+r+ Ubq6g0c7aRy3a/+VJtl3pFhUirzIUSD2SfxyWmo8DNla7CSvlJ+jW37MBNswJZHRJ/BPF5 WKYKQSUgXDKRizWYviAbPnlHu1DROoAlVzdlgOqKn3Z6i/g43SRGAhw8xaTQXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=bb8fac1ee1fa3347fbe8fa93d7a68aef64a131ec commit bb8fac1ee1fa3347fbe8fa93d7a68aef64a131ec Author: Andriy Gapon AuthorDate: 2021-11-26 07:28:18 +0000 Commit: Andriy Gapon 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;