Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1132230lqp; Fri, 22 Mar 2024 06:36:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1PD3QJy+1okeaKRzcmTVom8ns4tzIQNg6RLht0D72Z58dYGlLzzBgn86omYaeU2HYeCnQBL51esZNd+2mSJ5GnI9EycKrsMJ6tAcZBw== X-Google-Smtp-Source: AGHT+IGRrF8c7fL3FSEkNxiLOL47Y+Vh6fOYrhXXNBASqRj/oeMjXZpbYnHNnymtEgeL8/7BUw3D X-Received: by 2002:a05:6214:da1:b0:690:d21c:abe1 with SMTP id h1-20020a0562140da100b00690d21cabe1mr2445762qvh.62.1711114614328; Fri, 22 Mar 2024 06:36:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114614; cv=pass; d=google.com; s=arc-20160816; b=RCPrdl6v5yO2KSru44k7sOPc+1LIINZITkTdFM5mUu/e0M2/1YTadI7OrkJ524pllW PJgiwGxOzWamfjE9gObkaRxHPjTmb0AFB6t4ubwJE1v+xvtI8o0pCnyFcR8aHRnlLLS2 hU5FA3KqL8f/HsLcfwU9dW1t74PDLBSD9CpD/42mhH/mJhUA89gFseoeBURjLv96Zbv9 F8p//sMPrVTL45it0LcqC3FfEqsqvuw13mybXjKJnKXXl3gIHyC6sY0Eg7Na8ZdiOnU0 58IUwSJvDZN5+oDLfH+kfDWFVvhiae5duI4AzD+utSYtKfIWvVqfSNFBchTSibzyyGyJ aFxg== 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=OoNwixtQZ8u2Ylf1U91QXuREyq7/jiz/2k1ymkgoJiw=; fh=X7hjIFcehq6yuwj5XQxHn9XdgUEzdRJf6ma2bSoDdyA=; b=j2e3mqeGv4sOmXg8xy/s7N79BQ7wSYm+yoVc+/yuEmiytbqq15U98vhvHXDhF3SCQH 4jAcJmz0lHP2FC6INeHY2BdlQGJRM1YDmzl1WHLT1+fJ44p3b++q0I5eqtz2gA/Nr4fs AYwvG8uDIovGcJJ7XlC6y1SUgF2VHtYrgJxDQ+oY+oFIj+h3ucpfHydeKp+XFPlXcagv IAbTP+wQ8yXH4hx9ycaaJVVGAyMq0JbWzVgjwJY8gxpytQraNTwCg6fn2LK0dXREymGv /aP+qWspNr6sqUJSlxifnvURFe4nB111CPc0WuKujTD0v1e+cBUi1mx2c0s4ytJDups7 I/Bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b="fDvcCs/o"; 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-111518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111518-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 9-20020a0562140dc900b0068fd7a853b3si2123168qvt.501.2024.03.22.06.36.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:36:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b="fDvcCs/o"; 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-111518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111518-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 84C8C1C24B29 for ; Fri, 22 Mar 2024 13:35:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEE7F60BB1; Fri, 22 Mar 2024 13:27:15 +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="fDvcCs/o" 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 EAFF862808 for ; Fri, 22 Mar 2024 13:27:12 +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=1711114035; cv=none; b=D0yVlniOChy1iCiXd9mb+qoXx9yJsOcTwDddS2YuywdKrafz6U+IP8C5x17gURfXNs69MOltnufh7rL2D/I/sIQpzGjHLZkCmSdjKQr5kPq9/llPcBUE/5Le6DpoOrh6dI6t/1NG/dQHSHiLN889LMcyVY4o94VGbzH1ZYLbMlc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114035; c=relaxed/simple; bh=sAo9kbPJRiEtE7HLaqvTjdIVANrbDgOoZYHJpbnhpMg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PjzOFRJb66enwE7+x/wxW51KKJlJ9cU89jtaectfViaSNH6D00IQAn/Y6crIshxYB6n9SihvybcqTOvIq7rzGXDSlOA02hASvK1QDcQP1VYYIRm8NICGcZfNBcembhKRzumXh06gadhP/O//eG1MCF1bbrpcAVro3D+MdzMGzH8= 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=fDvcCs/o; 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=OoNwixtQZ8u2Ylf1U91QXuREyq7/jiz/2k1ymkgoJiw=; b=fDvcCs /oGhIMo9aFYcMjZrAhR/c+tbMWgGgXyPtgGOZ0tYU2bOigtIIgp2AGCYqesFvLHo oEOxca5UI3fIVov00dTI9sHoNZ6ejLlRSyuWmKFbkua/wdHbuOkdEHjajZh0hRXq VyHhqjHjXDPYcnXcY8loQ+cbONbRTnFDkHa4m0KHzeZjPHpNq40jf56BlxPAoApS IoDp6jVqYynAsAh1io9sVyRzqCd2nkIiQ0owRRwTdU1t1qSuWdOa/F7qRSOE9QZC Q8St+R918q/fnYP69ik9wGxFXLBy66VwvRU5A+juRXsAI5ADTavgpmOhMz4DjEF8 bI9CkQM0nskXqDZg== Received: (qmail 3871375 invoked from network); 22 Mar 2024 14:26:54 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:54 +0100 X-UD-Smtp-Session: l3s3148p1@xUD9xj8UdLBehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Andi Shyti , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 40/64] i2c: owl: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:33 +0100 Message-ID: <20240322132619.6389-41-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-owl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-owl.c b/drivers/i2c/busses/i2c-owl.c index 777f1a0278c7..cb90e1b2775c 100644 --- a/drivers/i2c/busses/i2c-owl.c +++ b/drivers/i2c/busses/i2c-owl.c @@ -172,7 +172,7 @@ static void owl_i2c_xfer_data(struct owl_i2c_dev *i2c_dev) i2c_dev->err = 0; - /* Handle NACK from slave */ + /* Handle NACK from client */ fifostat = readl(i2c_dev->base + OWL_I2C_REG_FIFOSTAT); if (fifostat & OWL_I2C_FIFOSTAT_RNB) { i2c_dev->err = -ENXIO; @@ -302,7 +302,7 @@ static int owl_i2c_xfer_common(struct i2c_adapter *adap, struct i2c_msg *msgs, OWL_I2C_CTL_IRQE, !atomic); /* - * Select: FIFO enable, Master mode, Stop enable, Data count enable, + * Select: FIFO enable, host mode, Stop enable, Data count enable, * Send start bit */ i2c_cmd = OWL_I2C_CMD_SECL | OWL_I2C_CMD_MSS | OWL_I2C_CMD_SE | @@ -314,7 +314,7 @@ static int owl_i2c_xfer_common(struct i2c_adapter *adap, struct i2c_msg *msgs, i2c_cmd |= OWL_I2C_CMD_AS(msgs[0].len + 1) | OWL_I2C_CMD_SAS(1) | OWL_I2C_CMD_RBE; - /* Write slave address */ + /* Write client address */ addr = i2c_8bit_addr_from_msg(&msgs[0]); writel(addr, i2c_dev->base + OWL_I2C_REG_TXDAT); @@ -420,8 +420,8 @@ static int owl_i2c_xfer_atomic(struct i2c_adapter *adap, } static const struct i2c_algorithm owl_i2c_algorithm = { - .master_xfer = owl_i2c_xfer, - .master_xfer_atomic = owl_i2c_xfer_atomic, + .xfer = owl_i2c_xfer, + .xfer_atomic = owl_i2c_xfer_atomic, .functionality = owl_i2c_func, }; -- 2.43.0