Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1130154lqp; Fri, 22 Mar 2024 06:33:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFvaHF7WSzafYql5FXBODMGUmRDJ0pH+nLLZNXRkcl9bzyLWgnpvb9IOSmVmID/Mpp0lGSwptBx9G/cL8x+5Jzr9dnWez0q0U53Q7KXA== X-Google-Smtp-Source: AGHT+IGiv3JQa1s4HvOTKjlxwIlHkPtbSAE7xlWUl9vkYyyrvtPlCumqlvUekBs73pZN5GGFbDzS X-Received: by 2002:a05:6102:48c:b0:476:4dea:360e with SMTP id n12-20020a056102048c00b004764dea360emr2632567vsa.15.1711114419390; Fri, 22 Mar 2024 06:33:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114419; cv=pass; d=google.com; s=arc-20160816; b=HePWy50ZUp0SQbjBYsiJZuxN8AyHM0OzaSKgFALRErxSt2XS+xHpeCcg79dDgXFQ0R BT9w43j6e7DWDsZmifCTckfbL3mLV1vvQtd0NvtXz/qbrFM6C5ZSKpZy9BB4RDh9pNAr aPiaQh+sQqJ2SOz0tstHFWn5F0UDEaV/y1Q8SBH1Cvws2g+Sh9S2AdyRtIyNdlUTwnZr YTasm2ZP8ZOFpHr1IWgYlRbCiF9/S3xVOR1kvgj1Bupn4n4R9fDDOOfCCPlD5bnlGXcg 5vUv8+Fm68EXMokgHh3AicwMgqGwAvHZViSiYgbEQmjdAxVILW4YOlG3X96E4jmiOoUC wQPA== 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=ItvkqPOxxoAxX6wP7vqtFYes8mnGS8tDMPsJtLe0c/I=; fh=Mfd9c3MYd6Q+Powq9wv6XiPcgk0zZW7+7SThwo/rzbA=; b=d4ERMsjclZNHOXgfUE1r+e/FJD5ju0g1X2kJKF2gP9LMHrz7GHaqRzUu4edKnWAyUd ZD1vfkMUOv3ckX20fk3yWf2BvOTMobKUa7rgXc1VOQrbZvRt1IRtJUalXzlv1K1c5/mp Wk9wPOIOMAZi0BhJYHHtE8c3x7aCZtK/Y2ac4nygm8QE41hxerK8pCggOzQcXIVC0eaN fhtBj5roKZq+0DkfSKKyVzd30y+IPQYJZz6ZRPXte6Z0mbodvpMlp6q62euc+PTBD74B 6pII7ccdBZSJFq5oXOh367tv52O3+aJ+yfmWwHe1Xt+nb2FERL5qrhCYM98td/yHvBKC RGEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=NJwmyVON; 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-111507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111507-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ia24-20020a0561024b1800b00476d86e20absi106328vsb.720.2024.03.22.06.33.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:33:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=NJwmyVON; 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-111507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111507-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 35FD41C237E0 for ; Fri, 22 Mar 2024 13:33:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A93B260DED; Fri, 22 Mar 2024 13:27:04 +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="NJwmyVON" 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 2B4B560899 for ; Fri, 22 Mar 2024 13:26:59 +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=1711114023; cv=none; b=CGKLLvqzp3w2HrMD1AN2TcamF59rxfL82t3XRph9f1fRc/rmW+ikNPAIieQmaKIxCUeJ18FqpIUGepTbM50eDhk6hC1lBOPbPqx+qDr397rSo2bBPJ3y1C1lobAr1bF91lWK7efELWXmqtODbzm8lTIp1WGnjyiC49OKZcwiEYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114023; c=relaxed/simple; bh=q7JRzLfJ8eThPTGrFEoS5oDExGETXR2V5D9xqAe4mLA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dHkfgvPNh6mU4sSdZ75GLXIYrArX58SJnE4clJkH4Y2dHbaYzX/50xV2UhS5rFVvaAiEr/OyfbOOqhEB7h/mWDeYLfhUDplWMFhosjulL9n60pUPb3kC57WjXcbCmR5CLlLD1QB6g03Qy0Mq6vjCU7c4WLbHlaPzVGwTT4x3zIA= 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=NJwmyVON; 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=ItvkqPOxxoAxX6wP7vqtFYes8mnGS8tDMPsJtLe0c/I=; b=NJwmyV ONyXHx43Ket4ijy0PAu5NZ/Gq58i9u8de1ufZvKAFznoF4R/5fxqFMN8GLLxzlRH X6rQ9CzdCnO7pboqDfwxGWJ5a6Ah3b4bCyoJmAt75wWCCLFa6G5C09CdaNj//vFC MwpARqcLpkBenCPLCqii5Dz2jFmZGIEQPFfcmcqdAFf5YsrmFOO1APdhQqFKRtUr jYlnocSCLj7+HgcobbG1eeQLOuq3a4CzrcANVd4IzmNtI3J8aKWbH1/0IRx9bU9y iAI/DLoYVopoPnMvSgHgueinejOLizZNjpJpcdbjkOIXzlF2bza81/NGMymJvA3M pMdxdVg61oa+SxrA== Received: (qmail 3870828 invoked from network); 22 Mar 2024 14:26:43 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:43 +0100 X-UD-Smtp-Session: l3s3148p1@kuNVxj8UwJRehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH 27/64] i2c: iop3xx: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:20 +0100 Message-ID: <20240322132619.6389-28-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-iop3xx.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-iop3xx.c b/drivers/i2c/busses/i2c-iop3xx.c index 2e5f0165c3d3..9973f7d83205 100644 --- a/drivers/i2c/busses/i2c-iop3xx.c +++ b/drivers/i2c/busses/i2c-iop3xx.c @@ -22,7 +22,7 @@ * - Make it work with IXP46x chips * - Cleanup function names, coding style, etc * - * - writing to slave address causes latchup on iop331. + * - writing to own client address causes latchup on iop331. * fix: driver refuses to address self. */ @@ -234,7 +234,7 @@ iop3xx_i2c_send_target_addr(struct i2c_algo_iop3xx_data *iop3xx_adap, int status; int rc; - /* avoid writing to my slave address (hangs on 80331), + /* avoid writing to my client address (hangs on 80331), * forbidden in Intel developer manual */ if (msg->addr == MYSAR) { @@ -350,10 +350,10 @@ iop3xx_i2c_handle_msg(struct i2c_adapter *i2c_adap, struct i2c_msg *pmsg) } /* - * master_xfer() - main read/write entry + * xfer() - main read/write entry */ static int -iop3xx_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, +iop3xx_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) { struct i2c_algo_iop3xx_data *iop3xx_adap = i2c_adap->algo_data; @@ -384,7 +384,7 @@ iop3xx_i2c_func(struct i2c_adapter *adap) } static const struct i2c_algorithm iop3xx_i2c_algo = { - .master_xfer = iop3xx_i2c_master_xfer, + .xfer = iop3xx_i2c_xfer, .functionality = iop3xx_i2c_func, }; -- 2.43.0