From nobody Thu Nov 14 04:55:26 2024 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 7BD5356451 for ; Fri, 22 Mar 2024 13:26:45 +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=1711114010; cv=none; b=dQV28ClWCSDBaVL+TwNT+rixB31NFUvbUleVw1Bc/SAWgB+D12Rl4qpJuYofCJIYj9YL4Ov2MlEGP9uJcG3Tyb9rEYSD9iSEQv4n3L6HSxj0j9wU4FlERM86FelKkOvs40mCnLjg2V7OtdAV1rv5vJXR/XGSy0lfZ/UIr2abONI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114010; c=relaxed/simple; bh=CpC8HnbTVThB6S+/pqooGf78jzq4no+HCFzgg6Qt6mU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OsT+d+j0o6hTfHH5jjZjM7k83KgoWV6BUibjaWtaQNOu7KrM6q46YcGKvrYI2gSEXltLr9VTRgvvPs55QoQSOndpuKCXK1Qzw0L804EcyvTX2mtVTf63KkAHEO6X0avCi4mLg7Zsk9kmVxgU6buCb4sG2Kwq225MrBIwF22uBTk= 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=hnc1nTnR; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="hnc1nTnR" 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=erf4Z8JIr6B+tpx1tzGIDc6Yy5XmMXEq/omWmLHe34o=; b=hnc1nT nRvT/YfV2ENjunXaB9nkkUUgozZNzCz9iQF0lQOPxzv3mHFBnxBVw0xg/I89kH4I cRoveeo8ka7Iw9lc6w8e9e/VJ5G5luTv+P6Zwc4FVwqewV6bQmsc77QTH882R7nO CG0h8SSo0H5CTeKT8k0u3vyfHkzwKVZDF1Vkn0hwDnfJ/un3MHM85mp/vdPntxFr FvLbg77zq2OCzqXCbtswGjaNC1vddHPUL3c7eFNwtihckkjk3ptzmXPcVtXs3khM KZxdHuc5R9uCShZH0tsPUw1yswB5uH0qM2VCiRU7LrOb98pwdH3fISVV7EQ3LfOV q3u3EiM7b9ft5gnw== Received: (qmail 3870244 invoked from network); 22 Mar 2024 14:26:29 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:29 +0100 X-UD-Smtp-Session: l3s3148p1@A5t7xT8UkJNehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Kamal Dasu , Broadcom internal kernel review list , Andi Shyti , Florian Fainelli , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/64] i2c: brcmstb: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:03 +0100 Message-ID: <20240322132619.6389-11-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: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Andi Shyti Reviewed-by: Florian Fainelli --- drivers/i2c/busses/i2c-brcmstb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-brcmstb.c b/drivers/i2c/busses/i2c-brcm= stb.c index 38f276c99193..dfdf465e6f8c 100644 --- a/drivers/i2c/busses/i2c-brcmstb.c +++ b/drivers/i2c/busses/i2c-brcmstb.c @@ -67,7 +67,7 @@ =20 /* BSC block register map structure to cache fields to be written */ struct bsc_regs { - u32 chip_address; /* slave address */ + u32 chip_address; /* client address */ u32 data_in[N_DATA_REGS]; /* tx data buffer*/ u32 cnt_reg; /* rx/tx data length */ u32 ctl_reg; /* control register */ @@ -320,7 +320,7 @@ static int brcmstb_send_i2c_cmd(struct brcmstb_i2c_dev = *dev, return rc; } =20 -/* Actual data transfer through the BSC master */ +/* Actual data transfer through the BSC controller */ static int brcmstb_i2c_xfer_bsc_data(struct brcmstb_i2c_dev *dev, u8 *buf, unsigned int len, struct i2c_msg *pmsg) @@ -441,7 +441,7 @@ static int brcmstb_i2c_do_addr(struct brcmstb_i2c_dev *= dev, return 0; } =20 -/* Master transfer function */ +/* Host transfer function */ static int brcmstb_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg msgs[], int num) { @@ -473,7 +473,7 @@ static int brcmstb_i2c_xfer(struct i2c_adapter *adapter, =20 brcmstb_set_i2c_start_stop(dev, cond); =20 - /* Send slave address */ + /* Send client address */ if (!(pmsg->flags & I2C_M_NOSTART)) { rc =3D brcmstb_i2c_do_addr(dev, pmsg); if (rc < 0) { @@ -545,8 +545,8 @@ static u32 brcmstb_i2c_functionality(struct i2c_adapter= *adap) } =20 static const struct i2c_algorithm brcmstb_i2c_algo =3D { - .master_xfer =3D brcmstb_i2c_xfer, - .master_xfer_atomic =3D brcmstb_i2c_xfer_atomic, + .xfer =3D brcmstb_i2c_xfer, + .xfer_atomic =3D brcmstb_i2c_xfer_atomic, .functionality =3D brcmstb_i2c_functionality, }; =20 --=20 2.43.0