From nobody Fri Dec 03 11:28:53 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 7AEDA1834759; Fri, 3 Dec 2021 11:28:54 +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 4J59ZF6nq0z3DcZ; Fri, 3 Dec 2021 11:28:53 +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 BC91D7E9E; Fri, 3 Dec 2021 11:28:53 +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 1B3BSr1P002461; Fri, 3 Dec 2021 11:28:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B3BSrAx002460; Fri, 3 Dec 2021 11:28:53 GMT (envelope-from git) Date: Fri, 3 Dec 2021 11:28:53 GMT Message-Id: <202112031128.1B3BSrAx002460@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: 906191040efb - stable/12 - twsi: add more of status definitions 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/12 X-Git-Reftype: branch X-Git-Commit: 906191040efb9294bf391b5dcdd6c00816d3974c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638530934; 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=N0BPBXPVeriUqr8TOq3OGLfauHHDuxffgeSN36eD8NQ=; b=UttoNglrOMIj6pfHkLMaH8JxQ2lJqSbvEYQ7dI7ZVDj/0ZCVbKHnUm9Ac/R9B/8j69wDo5 DdkL3+kWfMCJZMz7WgF8jkANRt+UZdS9AIW/X4Br8HLVbpcllgmgu6VuCgQrC4HVvpDjIN XFqVPpeUG+WIV7UBTP10rb2epAJoa18z8dmWiEoPsaPO/zZRd+KWx/tDBv8JHbaaadReCn UKiZUIpTHXC8OyiBFR7qlTDnfRnoo+RjJpQabMZx0fK1YPOMKeelQSYPDNEPRFxUNDIVau 9B57He29VV5GthAKX5u0LdYi5gIyXUvbxZCXEuWORTLmySWAEjPjZeaMLBE2XQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638530934; a=rsa-sha256; cv=none; b=JqfVausE4U3whstzAO2h+qJM+DZIskSnAN/ZHB653/hG69YAkGDGs4XXSpj7P/rDr85f2M lNy2ItjbwXqysx2CkRgTUhwVPp8x0CZWvyqByr9mVPh3bca516EacFzbmcFhhfeRy6H4Zz sLzdo1Y6BIU7ZAcCGXWbIX0YfxZSkuZjFkvYpWKm5I9s13tbSSNRcmG9MJ1svMn+iId6w8 M8O7psHVD6yK6rDgcILGOkBBxidA6OtQGKe2Ho3ZXY4TbJVjo/2JG4k8/Vh4GI5L9yTlvF xcVCbMHU1y62PDgtmE0LhdtDPIe1FjDP78FzrQltLQSxXNe1eY7D3Merv4yKfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=906191040efb9294bf391b5dcdd6c00816d3974c commit 906191040efb9294bf391b5dcdd6c00816d3974c Author: Andriy Gapon AuthorDate: 2021-11-26 06:30:22 +0000 Commit: Andriy Gapon CommitDate: 2021-12-03 09:35:39 +0000 twsi: add more of status definitions For completeness and for future use. (cherry picked from commit de86f339cdda0a10130033ff1771fb13cfacd9d0) --- sys/dev/iicbus/twsi/twsi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/iicbus/twsi/twsi.c b/sys/dev/iicbus/twsi/twsi.c index aa5de857c1d9..84bf0223fba7 100644 --- a/sys/dev/iicbus/twsi/twsi.c +++ b/sys/dev/iicbus/twsi/twsi.c @@ -68,16 +68,19 @@ __FBSDID("$FreeBSD$"); #define TWSI_CONTROL_TWSIEN (1 << 6) #define TWSI_CONTROL_INTEN (1 << 7) +#define TWSI_STATUS_BUS_ERROR 0x00 #define TWSI_STATUS_START 0x08 #define TWSI_STATUS_RPTD_START 0x10 #define TWSI_STATUS_ADDR_W_ACK 0x18 #define TWSI_STATUS_ADDR_W_NACK 0x20 #define TWSI_STATUS_DATA_WR_ACK 0x28 #define TWSI_STATUS_DATA_WR_NACK 0x30 +#define TWSI_STATUS_ARBITRATION_LOST 0x38 #define TWSI_STATUS_ADDR_R_ACK 0x40 #define TWSI_STATUS_ADDR_R_NACK 0x48 #define TWSI_STATUS_DATA_RD_ACK 0x50 #define TWSI_STATUS_DATA_RD_NOACK 0x58 +#define TWSI_STATUS_IDLE 0xf8 #define TWSI_DEBUG #undef TWSI_DEBUG