Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1135680lqp; Fri, 22 Mar 2024 06:42:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6G/I0zqX+HSOyZ0wOc3sW31DPgINqUMmdbxuL/oceLmsfggRwWMIN+pVMRTo+OJ5nAY+woQkhu5fx5EzLkRJWxDV1iqP8odGWkAkuqQ== X-Google-Smtp-Source: AGHT+IEPZmIO4Czi/0JcajKDO4L2XmkwFjELYcaDAyb5ajT/r8xAMS1nFQNySd0gVn2z3JFeMnC/ X-Received: by 2002:a17:906:3644:b0:a45:f9c5:3024 with SMTP id r4-20020a170906364400b00a45f9c53024mr1678567ejb.11.1711114962040; Fri, 22 Mar 2024 06:42:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114962; cv=pass; d=google.com; s=arc-20160816; b=R6NgaYDIyYK7xGBhUFta+LXXc6C9EF7XKmM875JBYavCPKKzvpCWqao6h/UDUgMALt NUTDuf++//h6AikvkYXxKotjhHzKHsNaW224iPKsuLlVcqimLlUGDn4U0JtiKr6qvfTT kI9nxJxf/hG6hkOuYb+HOrI8MwI/3qSrK6Yza91OZYShDLYg68mBnP1hnaZpaaqvMClO e+4CYh9WMPxH7iz9VBzdxONE0mqr8p+I1f4FbK31iARcVi4zYe+SqASd86JVjEMeVyQ5 Z/hIG5Hn+paNsYW7PhO5aUbGR11UUfJt9lCdQ014Sf5LshYHjH14u38ooPcCU6RVTwYh Z9cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yAE6JmthRrlChk2Hy2WlGkeEMuMtkH5UUitAAJeFiNw=; fh=rj7N1mO5Zuev5+ExBn5Z7my30n38ROfgIxCw3qPfHxw=; b=nVeltLeRt875Z3teT1UF5HSJ869l09gHQ9Qn3ljJPkcfIMHG1bhHVAKjLNQ1Pq62c4 MTzJELXntaw6b0DEwjZgwzeiSxR2rhP2w29rN4KB8zdpXajrBZK0uAKYbNpGCBxl1h6Y llAMRaaVg+Sp42hhpIsDDwSNoQX601WE0qKO4cd2CFZf0MhAwVirSrusTKzZuD5QLBr9 CEtE1aH04aHWH+rai5QxxvQ7GFPBVo5u6p+qsbQ1sM7Fh2V1uY3VNmEx0MhyZ01bc1MJ BA+ToDR/NMixbaf+mY66uj2gGt5v1w+jTrnFYv/VESaurG7Uvrb/odUKGduYODAIcg/l LWMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b="e/SN81VT"; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-111516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111516-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q27-20020a50cc9b000000b00568a61b191asi907879edi.396.2024.03.22.06.42.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:42:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b="e/SN81VT"; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-111516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111516-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 974B81F2892F for ; Fri, 22 Mar 2024 13:35:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94EC86281F; Fri, 22 Mar 2024 13:27:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="e/SN81VT" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B08366217B for ; Fri, 22 Mar 2024 13:27:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114032; cv=none; b=kbb8s0ooKI94HflmoX/4OiyBAiOm4owpKKkkk9YDj++ay8mQqr1Zc8NusS6ZDP9zEMi1VyOFM7Qua3JmK4NqMLlD3tCcEoAhjGXGfZtnnekHl70VGR8QZWK8O1DzOuHa/GE4CYnLaUWhqkPgTb9hAKu1rMK4T1/SiAEHtQw7gVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114032; c=relaxed/simple; bh=FYnBTFpKVQeWLm0SBhcUe8AAmDxIAkTBFh0KEqCtkgc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YlHDzfz3StB0AKLx0CChDi0xAhGWfU/agYEhqIlP2sn/nSLjeia/caHtHlrlS1rHdBwzA+nNOPl5YfLvc997yFT6UNGQif6dyFFxkJShPy/UAOI5F5h9MMC1uJYtT8KLlSYhWz2ju6I5AA0JKZfmByaicj5TQRHzMXohka9oDGI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=e/SN81VT; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=yAE6JmthRrlChk2Hy2WlGkeEMuMtkH5UUitAAJeFiNw=; b=e/SN81 VT4ZooC20O7AFo7XIzW3sE6T/Z7TlVwP8fwf7bYvfX0Xbdpg85d7f94AeWX649P5 nxA+hzSd6QZFLBRyT4KcSy6/MPWaq5pE5ZXh/shtLku4C/JtGpbqfXzNhQqWclgZ j//Lm1KhmIe8drTLOog1b8uXhVppdsh0Qgg10Pad20v5kWC48Zss51baUk3CWdng 7/sohoDbJhrVhrdDY0c+kSnRvf+Jj6DMw1V7IaJR61PmrhDNdK+tubgs78nX4sLp Zr7n/fmFBUMJ1JZ5bUSGZOrTgHGQMbF9RZv4anjWYdOvizN19nrDz3GF1jVRlR8Z yRRBtUJVSKlH+Fcw== Received: (qmail 3871294 invoked from network); 22 Mar 2024 14:26:52 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:52 +0100 X-UD-Smtp-Session: l3s3148p1@Hc7ixj8UYrBehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Gregory CLEMENT , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH 38/64] i2c: mv64xxx: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:31 +0100 Message-ID: <20240322132619.6389-39-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240322132619.6389-1-wsa+renesas@sang-engineering.com> References: <20240322132619.6389-1-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Match the wording of this driver wrt. the newest I2C v7, SMBus 3.2, I3C specifications and replace "master/slave" with more appropriate terms. They are also more specific because we distinguish now between a remote entity ("client") and a local one ("target"). Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-mv64xxx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c index dc160cbc3155..0814f5bc8362 100644 --- a/drivers/i2c/busses/i2c-mv64xxx.c +++ b/drivers/i2c/busses/i2c-mv64xxx.c @@ -89,8 +89,8 @@ enum { MV64XXX_I2C_STATE_WAITING_FOR_RESTART, MV64XXX_I2C_STATE_WAITING_FOR_ADDR_1_ACK, MV64XXX_I2C_STATE_WAITING_FOR_ADDR_2_ACK, - MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_ACK, - MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_DATA, + MV64XXX_I2C_STATE_WAITING_FOR_CLIENT_ACK, + MV64XXX_I2C_STATE_WAITING_FOR_CLIENT_DATA, }; /* Driver actions */ @@ -279,7 +279,7 @@ mv64xxx_i2c_fsm(struct mv64xxx_i2c_data *drv_data, u32 status) } else { drv_data->action = MV64XXX_I2C_ACTION_SEND_DATA; drv_data->state = - MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_ACK; + MV64XXX_I2C_STATE_WAITING_FOR_CLIENT_ACK; drv_data->bytes_left--; } break; @@ -307,7 +307,7 @@ mv64xxx_i2c_fsm(struct mv64xxx_i2c_data *drv_data, u32 status) drv_data->action = MV64XXX_I2C_ACTION_RCV_DATA; drv_data->bytes_left--; } - drv_data->state = MV64XXX_I2C_STATE_WAITING_FOR_SLAVE_DATA; + drv_data->state = MV64XXX_I2C_STATE_WAITING_FOR_CLIENT_DATA; if ((drv_data->bytes_left == 1) || drv_data->aborting) drv_data->cntl_bits &= ~MV64XXX_I2C_REG_CONTROL_ACK; @@ -797,8 +797,8 @@ static int mv64xxx_i2c_xfer_atomic(struct i2c_adapter *adap, } static const struct i2c_algorithm mv64xxx_i2c_algo = { - .master_xfer = mv64xxx_i2c_xfer, - .master_xfer_atomic = mv64xxx_i2c_xfer_atomic, + .xfer = mv64xxx_i2c_xfer, + .xfer_atomic = mv64xxx_i2c_xfer_atomic, .functionality = mv64xxx_i2c_functionality, }; -- 2.43.0