From nobody Fri Sep 20 04:13:52 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 1353364A89 for ; Fri, 22 Mar 2024 13:27:23 +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=1711114046; cv=none; b=kDiDpqSi7bWYTfyjN+4eklMiV8ywraf0zvDxhhPpThPVtIlQjPEM3xxu/5VCmI/AHMuWeLJzzue3pJJlD9Mb3gIMapJsIvHkqayn0fCJwM+FUw/d0wi7nl3sdmdYgVWYBOJSoW3a4ip/5vtmePM4mzrD0chVBskfgJFjQgGmbgc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114046; c=relaxed/simple; bh=JopqC1CUA53KwbARMzk2PCnsUdhS27WGHgIgrl130yc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C8c+r1cFpfYIb3LLvSEWtSltkqB8jy304YUXYu2QrvEPSHTH4hNCD6l2RDh42ThdbuHNWNMJRSM4HTbwP0+31VA7cMxx0Rua2WTCCCcDo56KFX1/mrFGzlcIFYyICW3NsvNbzDRmupaAri8Jgi6anr/oynTgI4dFFVHyP3y6u3k= 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=lmVKV8Fv; 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="lmVKV8Fv" 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=83ypbEc9zEl6mc8ZY/BhWqheV6O8ZhghdvuHQYn8SGw=; b=lmVKV8 Fv7W7PwTQKacO0Czh2T3OLVPheHj/dZG/Y1qnKYwxa+4V76ajiIV71HpaXJ8APPY Vlz08qZ7Hrq5Zmycyj0/3901kolybUfUlsOb3nXVtE/5Ej7I7bXefHcJPUMjFoTo ujOkZ0RDCSk4Xt1FUM61EWbUHf0BlE4y4OBKth00hiMNtBq44ciECxAODUQYs8Q8 0aKxYcdtk/pjE77HyOIUlir79KMbuTBazs2VxKdkdceZVpug5WAapNT//cdb2Xji Xn4nUaaMUTws28u+fwr8JfF0SILwDB/p+8Nc39rfXupgJiw0VcMjDmocurJ4DDjB 9j+Z0kSvivo91URg== Received: (qmail 3871861 invoked from network); 22 Mar 2024 14:27:03 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:27:03 +0100 X-UD-Smtp-Session: l3s3148p1@CtiFxz8UMJRehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Jean Delvare , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH 51/64] i2c: sis630: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:44 +0100 Message-ID: <20240322132619.6389-52-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 --- drivers/i2c/busses/i2c-sis630.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/i2c/busses/i2c-sis630.c b/drivers/i2c/busses/i2c-sis63= 0.c index 3505cf29cedd..7910ba2fce15 100644 --- a/drivers/i2c/busses/i2c-sis630.c +++ b/drivers/i2c/busses/i2c-sis630.c @@ -18,7 +18,7 @@ +------------------------+--------------------+-------------------+ | Clock | 14kHz/56kHz | 55.56kHz/27.78kHz | | SMBus registers offset | 0x80 | 0xE0 | - | SMB_CNT | Bit 1 =3D Slave Busy | Bit 1 =3D Bus probe | + | SMB_CNT | Bit 1 =3D Client Busy| Bit 1 =3D Bus probe | | (not used yet) | Bit 3 is reserved | Bit 3 =3D Last byte | | SMB_PCOUNT | Offset + 0x06 | Offset + 0x14 | | SMB_COUNT | 4:0 bits | 5:0 bits | @@ -56,8 +56,8 @@ =20 /* SMB_CNT register */ #define MSTO_EN 0x40 /* Host Master Timeout Enable */ -#define SMBCLK_SEL 0x20 /* Host master clock selection */ -#define SMB_PROBE 0x02 /* Bus Probe/Slave busy */ +#define SMBCLK_SEL 0x20 /* Host clock selection */ +#define SMB_PROBE 0x02 /* Bus Probe/Client busy */ #define SMB_HOSTBUSY 0x01 /* Host Busy */ =20 /* SMBHOST_CNT register */ @@ -93,7 +93,7 @@ static bool high_clock; static bool force; module_param(high_clock, bool, 0); MODULE_PARM_DESC(high_clock, - "Set Host Master Clock to 56KHz (default 14KHz) (SIS630/730 only)."); + "Set Host Clock to 56KHz (default 14KHz) (SIS630/730 only)."); module_param(force, bool, 0); MODULE_PARM_DESC(force, "Forcibly enable the SIS630. DANGEROUS!"); =20 @@ -144,8 +144,7 @@ static int sis630_transaction_start(struct i2c_adapter = *adap, int size, =20 dev_dbg(&adap->dev, "saved clock 0x%02x\n", *oldclock); =20 - /* disable timeout interrupt, - * set Host Master Clock to 56KHz if requested */ + /* disable timeout interrupt, set Host Clock to 56KHz if requested */ if (high_clock) sis630_write(SMB_CNT, SMBCLK_SEL); else @@ -201,10 +200,7 @@ static void sis630_transaction_end(struct i2c_adapter = *adap, u8 oldclock) dev_dbg(&adap->dev, "SMB_CNT before clock restore 0x%02x\n", sis630_read(SMB_CNT)); =20 - /* - * restore old Host Master Clock if high_clock is set - * and oldclock was not 56KHz - */ + /* restore old Host Clock if high_clock is set and oldclock was not 56KHz= */ if (high_clock && !(oldclock & SMBCLK_SEL)) sis630_write(SMB_CNT, sis630_read(SMB_CNT) & ~SMBCLK_SEL); =20 --=20 2.43.0