Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1133441lqp; Fri, 22 Mar 2024 06:38:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhEslsyQt1/4A1akblHBH7rqAtpCr+w7QnfnMDrnah/m61o4XzUYIv6WWs2W/eyKB5irYfdYIgITRA0EKXyF4DPNJVNwhEtDVdUCNk0g== X-Google-Smtp-Source: AGHT+IFHS8obYpgMdzhstAhDeGKUQCMb1JGPZ1Rs5JSPQurIKOC2MQRhyh0qhgSkJMIYUkWjgtb5 X-Received: by 2002:a19:5f1c:0:b0:513:64d7:afb5 with SMTP id t28-20020a195f1c000000b0051364d7afb5mr1634460lfb.57.1711114733324; Fri, 22 Mar 2024 06:38:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114733; cv=pass; d=google.com; s=arc-20160816; b=skvxortSVBBg/mGx7ztfXXHngYEvLDlkPgU+zX8T1awskh1aR5aS2kTDgFgYM8xlFj Sr1Tp5KdAeT6rIwRodBFgafvfL6oSJhpI98hr7aACRvwK1r+dcHxM9eHFSfyoer52ges haSS4KANstjEzaLk0voyQQHcrMuIoxkTAvS/U71bU/ZfjQGXfBKo0EUHyvz0rn//D1Ik Pq0lIS5n6RSZzi+DhCebbQly8mMSofKbx/2EkbbMJQx2smAz+OgZrMvwRrznGoSpcFFR Yp809OjNoBiEwEvDofhKmuFOZJ63nyvf4Wv4bzNO14h/ZWY3iVad7ITkWHQzd7zk/w9q +uyQ== 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=lqe4UEUa872JnIqAlpZ6cZkudSkhxFiVgkhEQslGLLU=; fh=qIg6e1H5p8K56BEEHouvvaTJKxhfbLaGARRKWgtOwQc=; b=n7vuaKQ9itQ/b62rxX+km5d6XAMLEDjoPhEPiLBVDdL7tbNFkun232qSRSrCL7Dvt8 J6yMbYgD2VwyCy1ZIhkB6swI8Sueg6uupVPNpWc0XgFsfxwwANfS4miJuVR8SMOZnKTC GV51iI+l3gUljZogB9otahOxVA69jfPX1V63hHy8nVQtqD++qafDQYiFH2W+0XN+IlSQ rFJX7ripKoNcjZ1Ktv0CpQBvCaJfgRGBv34Lfxi4SnQYwTxKFhp4BR16USH12eHo8ZgF CnAb3XBDH+rKJKOAQm2ztNXq2P1gV9QmHafWTmhecn7NhvAxMTaNBZDiKtbmfcbgV+ig Fn1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b="FZdxy/ub"; 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-111530-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111530-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 c20-20020a50d654000000b0056bacaac784si903557edj.602.2024.03.22.06.38.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:38:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111530-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="FZdxy/ub"; 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-111530-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111530-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 432061F228B0 for ; Fri, 22 Mar 2024 13:38:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0219165BCE; Fri, 22 Mar 2024 13:27:28 +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="FZdxy/ub" 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 00975481DA for ; Fri, 22 Mar 2024 13:27:24 +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=1711114047; cv=none; b=XZauMikKj93sTsUFFhwdcQHwVwPfSEpob3o8bILDCB1YAWrL8U+nBU9dG0Ml92r9iMjjTI/0njqmuQXZznp/FaTHmKrlMYP1YCYGoEGwOBb4HWJ+lndRW9vf4drpc+KrDaB126IXTCs6W9M1CKds3mTMcrfs53ncskLbnqSYrJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114047; c=relaxed/simple; bh=KsrGCMJkM/BN/H4+pbAJYnvwKmCMdAIEIfiSmEJTKbM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M+Khin1GxpN0CNcnSV3HC0KrQKlsmLnT0PbPXiBH9WV7MiEVAlGjpUgSn3k43LWlcCzX4hmQMVz9CkseKRm3eXznQxmqkzP1mUGXHkh6hkZJOx08RfQNPhm1vBvB7+78qJ1h3WYrbMRuj4TSAHYfsMa0l+r9C0o5Z7pY+eiEPxI= 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=FZdxy/ub; 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=lqe4UEUa872JnIqAlpZ6cZkudSkhxFiVgkhEQslGLLU=; b=FZdxy/ ubvyPfwY1+sfcFyAWR5w89KmNRJ9dFMb/qACNko50UMeOQzignrqEOej+8BH1Yj1 J9kXJpGF4uEmPcBFblwRrfWiepiSmPXZg+iAW/08lbNEbbu5BWxUHs5fDbpf2tCz l48b54Nyuo4kJ52Df/hiM9XkoeUJTxFQpzgq50CS7FBsy4qRVgrXVZvxQaeNylmy GBYfoRJmPpEpVnb5EPq7pFMRixWN7z4x6gUm5Cwk+uylaQsWJCrgSQXxtfqvBPSo +Kr0nvaZ1FTyi1nfQu5ft4hBWR67BxLBBfJo2bOkDFKiCuJpKu76zlWjWoSFr8cz Ao8y1tGm5j3agh0g== Received: (qmail 3871891 invoked from network); 22 Mar 2024 14:27:04 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:27:04 +0100 X-UD-Smtp-Session: l3s3148p1@REiSxz8UNpRehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Andi Shyti , Orson Zhai , Baolin Wang , Chunyan Zhang , linux-kernel@vger.kernel.org Subject: [PATCH 52/64] i2c: sprd: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:45 +0100 Message-ID: <20240322132619.6389-53-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-sprd.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-sprd.c b/drivers/i2c/busses/i2c-sprd.c index 28c88901d9bc..f1a8375ccc17 100644 --- a/drivers/i2c/busses/i2c-sprd.c +++ b/drivers/i2c/busses/i2c-sprd.c @@ -283,7 +283,7 @@ static int sprd_i2c_handle_msg(struct i2c_adapter *i2c_adap, return i2c_dev->err; } -static int sprd_i2c_master_xfer(struct i2c_adapter *i2c_adap, +static int sprd_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) { struct sprd_i2c *i2c_dev = i2c_adap->algo_data; @@ -314,7 +314,7 @@ static u32 sprd_i2c_func(struct i2c_adapter *adap) } static const struct i2c_algorithm sprd_i2c_algo = { - .master_xfer = sprd_i2c_master_xfer, + .xfer = sprd_i2c_xfer, .functionality = sprd_i2c_func, }; @@ -378,12 +378,12 @@ static irqreturn_t sprd_i2c_isr_thread(int irq, void *dev_id) i2c_tran = i2c_dev->count; /* - * If we got one ACK from slave when writing data, and we did not + * If we got one ACK from client when writing data, and we did not * finish this transmission (i2c_tran is not zero), then we should * continue to write data. * * For reading data, ack is always true, if i2c_tran is not 0 which - * means we still need to contine to read data from slave. + * means we still need to contine to read data from client. */ if (i2c_tran && ack) { sprd_i2c_data_transfer(i2c_dev); @@ -393,7 +393,7 @@ static irqreturn_t sprd_i2c_isr_thread(int irq, void *dev_id) i2c_dev->err = 0; /* - * If we did not get one ACK from slave when writing data, we should + * If we did not get one ACK from client when writing data, we should * return -EIO to notify users. */ if (!ack) @@ -422,7 +422,7 @@ static irqreturn_t sprd_i2c_isr(int irq, void *dev_id) i2c_tran = i2c_dev->count; /* - * If we did not get one ACK from slave when writing data, then we + * If we did not get one ACK from client when writing data, then we * should finish this transmission since we got some errors. * * When writing data, if i2c_tran == 0 which means we have writen @@ -653,5 +653,5 @@ static struct platform_driver sprd_i2c_driver = { module_platform_driver(sprd_i2c_driver); -MODULE_DESCRIPTION("Spreadtrum I2C master controller driver"); +MODULE_DESCRIPTION("Spreadtrum I2C host controller driver"); MODULE_LICENSE("GPL v2"); -- 2.43.0