Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1136498lqp; Fri, 22 Mar 2024 06:43:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUp8u6kAXHwSyGGSDJP8SEvWBrpsqm091rp8D//co6ZcQXfz1qN8WOdzc6ejX6/ytae1MuAoN1pCEdbsXbu2cjH6YVdjvVlS2Qk5ZGJVw== X-Google-Smtp-Source: AGHT+IGyIVcDkmasTzeYZqdIgFO/Xi3taTORmaxUtCPgGC574r0jWK2kuLoViG4rAjMN+2mVeK+m X-Received: by 2002:a05:6358:103:b0:17b:88c2:5c13 with SMTP id f3-20020a056358010300b0017b88c25c13mr2930073rwa.7.1711115039292; Fri, 22 Mar 2024 06:43:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711115039; cv=pass; d=google.com; s=arc-20160816; b=GR3vXy/gvsEdrOV9nLrva5YCeucte7Neh6G9LYkQjmU+jw4MfV2xgJnUoRVle/PTlC tTfmfFnBpKoYUWlFbcnILIIyyiXq98rozYLvtUGlN7jQkNTGPDTxK6ocQOZ+ZsApC5jr abEJA+XodzDMmDVLtKbd5Aw0jAp9+3uo4iS0Ep/jgbL4IGlQ/Vf8bEatwBOXDrZm2VJS 5F5nSYUl2bTDsO4/mku1we/NT97Uvz8lQWr2PFTtF6lb5KhYNXZA5PCQ91XE9D9PGXqx qfrJeJ/hqWrAAt6CLYPRanfYvauEr7mW2+wGQ21FN0T7RYv5vOk3dLf4yaj6Zfn/Adws wIJQ== 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=sbE/F8+G/icLLI8X84PqoQEotRP5kSI8t6RtImPL4Eo=; fh=EcoYLtMgaxzTpywca9y1f7oaDOV+tpTYPSQZJpLraEE=; b=MMNTPEIBkR7vbnn8WREiF1Fgm7sYbd6eEaLz9XB4EDgsIa0q8SZkWxkwk8NexISr0G 3vROObaQYIsvs8wvRy70MU7U3u0VCXhoNLMevsuSbrdzioCfjnrbvBHkMuI+40P6K8L4 XO7g+zEWUKm1wg9SHt8fKax0NLMDeOMdc9iKdoifxzhHk0+wqvcND+iINdDWgCe7FpLj bTYpeG8tH3dB9cgxXU9x4/QnKjUvnUoAGfzlXfmlyBVTiAijupuNq9As3SwVBxyCHYro r0+4PIoD2lG6Vnko11vvlYtDr2xGehVO0cCoalzw8c9wOX9vsArWQ1KlXBrXwPCww/nl odyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=ef2WfHRK; 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-111510-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111510-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p186-20020a6342c3000000b005dcbb6b06bbsi1933291pga.292.2024.03.22.06.43.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:43:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111510-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=ef2WfHRK; 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-111510-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111510-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 394A128993F for ; Fri, 22 Mar 2024 13:33:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFB10612E3; Fri, 22 Mar 2024 13:27:06 +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="ef2WfHRK" 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 DD03860DC7 for ; Fri, 22 Mar 2024 13:27:03 +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=1711114025; cv=none; b=UHH9xTbulru1b2UZ7Lt90oM/42vKAxSRgEyQC9atkdiUpnzyu51LJSH7eaTxB4h5Ds3yNv5GjX2rlyK5Svd3xPYGccL8c5mW8jUlEKNCCXBEBP6jVOIKFgonmENGf0bTpAoS6bDGDdhmkdrJKi7SyDEyTnzXFAuNqW8j+r0uthA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114025; c=relaxed/simple; bh=LqqomsdktA9PTDP493BWKLGoi/VPntCQe2jcifDjxWY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=S7EJLzzdZf+AKuKQOncz3mHG7Vp9h/eOLlauv6+xAONal33NUaRFHqo4saZm4p2fjkjEfpydvp11RgnAiaL9Ufnq5OeQVWgMejcSxwcFucaZXuNvXOuREmr21BeWq+7FqBGiDPiz78cGoVsmlE//+JkXcd6efpmJ3RIl4BH+LmA= 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=ef2WfHRK; 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=sbE/F8+G/icLLI8X84PqoQEotRP5kSI8t6RtImPL4Eo=; b=ef2WfH RKpBRv/nQII0Z9hDSaM4KgARYRCWVeIjqsmxpdBuwfUsoGpAsGv0s5pocRBAGwTk a/Z7pt1wBDHhWQPWba7vRsJCkAGtmSVS1cf4O0o5KhCPaQxuzS7pHcEpkSTriZtE JiMks0bWOeDVhImRqeC0xwh2CCr2b/ecXWQjvn+ot+TGeRu4agwtY1Rx8+R4uh5H 7Slg3aJJh4JEEy1lGxOUjczxcu3nySlBL5dDCI7t8MiSM/EKe28Pqm0js1qRp2Dr iIYNw0nABiqFdMAyc4F7OcQNMk5G2cHvE6oUm8jY20ik/xQE2FjTZeVwnfum4hGv GBIlJfkP9a55KS1A== Received: (qmail 3871041 invoked from network); 22 Mar 2024 14:26:47 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:47 +0100 X-UD-Smtp-Session: l3s3148p1@RKGTxj8U8pRehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Binbin Zhou , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH 32/64] i2c: ls2x: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:25 +0100 Message-ID: <20240322132619.6389-33-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-ls2x.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-ls2x.c b/drivers/i2c/busses/i2c-ls2x.c index ebae6035701d..99fbc561e7f6 100644 --- a/drivers/i2c/busses/i2c-ls2x.c +++ b/drivers/i2c/busses/i2c-ls2x.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Loongson-2K/Loongson LS7A I2C master mode driver + * Loongson-2K/Loongson LS7A I2C host controller mode driver * * Copyright (C) 2013 Loongson Technology Corporation Limited. * Copyright (C) 2014-2017 Lemote, Inc. @@ -51,7 +51,7 @@ /* Control Register Bit */ #define LS2X_CTR_EN BIT(7) /* 0: I2c frequency setting 1: Normal */ #define LS2X_CTR_IEN BIT(6) /* Enable i2c interrupt */ -#define LS2X_CTR_MST BIT(5) /* 0: Slave mode 1: Master mode */ +#define LS2X_CTR_MST BIT(5) /* 0: Target mode 1: Host mode */ #define CTR_FREQ_MASK GENMASK(7, 6) #define CTR_READY_MASK GENMASK(7, 5) @@ -251,7 +251,7 @@ static int ls2x_i2c_xfer_one(struct ls2x_i2c_priv *priv, return ret; } -static int ls2x_i2c_master_xfer(struct i2c_adapter *adap, +static int ls2x_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) { int ret; @@ -273,7 +273,7 @@ static unsigned int ls2x_i2c_func(struct i2c_adapter *adap) } static const struct i2c_algorithm ls2x_i2c_algo = { - .master_xfer = ls2x_i2c_master_xfer, + .xfer = ls2x_i2c_xfer, .functionality = ls2x_i2c_func, }; -- 2.43.0