Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1133362lqp; Fri, 22 Mar 2024 06:38:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdm1hikDVFr2kkT0ovxyMm1g12Glni2pYsZ2GgVEwkMiPrEHWnhy4zc3K0057XLQIvULXPJrk4jQ/+jYsCS9hBP/wPJoM4EYrmZU9RuA== X-Google-Smtp-Source: AGHT+IE6EhpL0KQPPJwm+bBaFLYU2H3N6/JQciXu4GT76N7/bZI5CLQzv+tyckVhSLUmxMoOcv7A X-Received: by 2002:a17:907:b9ce:b0:a46:bf6a:2a27 with SMTP id xa14-20020a170907b9ce00b00a46bf6a2a27mr1669386ejc.40.1711114725961; Fri, 22 Mar 2024 06:38:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114725; cv=pass; d=google.com; s=arc-20160816; b=soFlRmjI0fw0OWIQjrqFRJbGalpmI2F4DumwaclXUjCyYmR0aBUibdHCR6cy6Wei2t 31CGMFncS5cz+JO5zzylM2KeY1CrbZCCXCBoYF3arPWj4x5aWs2WpYJbNFDLOBty7eaf hziETLAitqhjeARfHhbezfzb7mwqcf/GgRvzmufebpmbBiZ57u5lQb31sR1FQ6C4OizR 6YF+z7vF2tUN4c2ALWBMfNACxpvMjStOPmMPixuCPQNH7D+6zLbREvu3VwX0b5Q3Mc+7 RYujxBN4l3I7HAK68xPLYyCB9zru5yeB8X4GxKvhDRA6nloCzdPzvsbXoWr3dEHPycVm +1CA== 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=83ypbEc9zEl6mc8ZY/BhWqheV6O8ZhghdvuHQYn8SGw=; fh=4rCUAXEVsxaF0v6fFzDttaa/8UcUGFLktTHhkcSEHE4=; b=ECJg4sSm+BcwdVvADT0YBLzvLQncVd5zKnrY56vDjI5bTuWhXErhN1h2jHKy7vwv0D JJMveG6jKHKsRC7D+Sli4xpu9nB8912cZFATa/p/dQ9jTGAvHDvJB+kx/8phgrsaunbE jQgTTxsk5k7EYl8GaanWAl6MhjbJqkRp0bujdKwCeNpnwHb/x2awQmj7e1Gi6sv+Tfwh a1HN3tDmxEjpBhLUxPGGMy+ssNBQN8W2E3dCrQJNtOsuwSNPqwBKIkj9/EBOQaizCBib tndlGQMRLgz2pByXFFCdEzmExQaTnIewHbF0RFAVBalfyYpGOfoe/lGbbJk2X0wXb6pl t2Wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=lmVKV8Fv; 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-111529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111529-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 ko12-20020a170906aa0c00b00a4623e9b358si884382ejb.633.2024.03.22.06.38.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:38:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111529-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=lmVKV8Fv; 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-111529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111529-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 ED4251F228CE for ; Fri, 22 Mar 2024 13:38:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C61265BAF; Fri, 22 Mar 2024 13:27:27 +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="lmVKV8Fv" 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 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: 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-sis630.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/i2c/busses/i2c-sis630.c b/drivers/i2c/busses/i2c-sis630.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 = Slave Busy | Bit 1 = Bus probe | + | SMB_CNT | Bit 1 = Client Busy| Bit 1 = Bus probe | | (not used yet) | Bit 3 is reserved | Bit 3 = Last byte | | SMB_PCOUNT | Offset + 0x06 | Offset + 0x14 | | SMB_COUNT | 4:0 bits | 5:0 bits | @@ -56,8 +56,8 @@ /* 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 */ /* 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!"); @@ -144,8 +144,7 @@ static int sis630_transaction_start(struct i2c_adapter *adap, int size, dev_dbg(&adap->dev, "saved clock 0x%02x\n", *oldclock); - /* 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)); - /* - * 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); -- 2.43.0