Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1126583lqp; Fri, 22 Mar 2024 06:28:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkLJcxCWmzrjxvyDSG9trwtpyhPMLaO5ozACicHZGSPmHpADOWZ+V25whylkWWIJamh69wk0qzs3MqqrjmSg5WWdWfion5Uk6p08zv/g== X-Google-Smtp-Source: AGHT+IF14Ovih6g7tVInY42RCZ3/dWvAfwTK2LXJHSuKhydOE9QyvGZLID+T3G0Os0Tc50EJaKOV X-Received: by 2002:a17:90a:d98e:b0:29f:d869:fa9a with SMTP id d14-20020a17090ad98e00b0029fd869fa9amr2103203pjv.19.1711114128245; Fri, 22 Mar 2024 06:28:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114128; cv=pass; d=google.com; s=arc-20160816; b=oGeAS6BYLVqAm5+b3HxKHn/cn1dVqWZ0vfgI8iJKXE0npjxIMMMqBD3C+0BOllDJqM mhIBoW9CZ2ERzJ0cAu3OtR3X8P4AxC5ZHXy7zio7gAgDWUVFH1MmBrinhNlA0HjEEpKF 21och/Gq2n1gErsbI++WyJQ/wWemDSmV5HrnYs2B1+NPYyK3By84tcDakiRgdkJa+t8W a6yo5ryq23tmcB9Ln9q2PDTbwKBF6oobA0KBIbSun818D56pzxXZfeEquFXOWxzv246V BK4ff1NufKf+yGmg2+QZuAu6bBt6tIGAsQG6III1uOBEjEkV6POAGSwMsxWgFA9Hw+TV XXsw== 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=+9eJDPYcvheHFhVWSeTXcV93NuGaWmWAwekU/Oh9CJ4=; fh=Xzt4wakvYZFaqEUk53Nka7dzI49vk6rPHyIdaBBR4Fc=; b=CvGgdQhjEPgva8ufixMWXmgF3O99Mu2rdEOJGRG/wueiiPB9OHFJM7a7U7RCyz39W5 J0uDTqZtgO6BJmzR/Q6GQ/A+obaCjNZSqdSHKRcviCnKSLjtRq0IhVI5oHtgYVfgqvcw pjfBwwcatxUPqFmx9Q6RX2LK3dMm1pE0FWFu/6y7wDaDtV60wBCpoYOqgI7ZjQtlC4Uh 30BP9vTFU0HCiPe9QlYm0U/5lZqnMWZACs+eJmXPAw257pwdJpQ0qu0Ond5Y+LHaQvms TbZVogQlwtLhRRugUzooBEMROrSWlvuybs/qlKDd2NwyDt9eO3IohIBWBCh0kpPkRXHq mCwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=Vfk35MJS; 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-111485-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111485-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p6-20020a17090adf8600b0029cf40e2b43si5824820pjv.143.2024.03.22.06.28.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:28:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111485-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=Vfk35MJS; 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-111485-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111485-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B3831284C63 for ; Fri, 22 Mar 2024 13:28:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 873F15337F; Fri, 22 Mar 2024 13:26:45 +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="Vfk35MJS" 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 D8EA847A74 for ; Fri, 22 Mar 2024 13:26:42 +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=1711114004; cv=none; b=N/uR23vjOrgOil2slO15yx9pv87XYqJ6AyFbMwkkKwcRimj9OKD78FVctS0guP0pDONTZvck6Kx1AZs4pHq/1TV68Ahn1CO5+ZBxD3vcwQsiePknIWoYXCWAKj2v7ztBupFcE1a//RErHLY6cUecqMHRPwgdLuZz8JOnj2WqNOw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114004; c=relaxed/simple; bh=ym3gtFYbdGqQAg20b+BWubWlBx3M58XIGmfXCrpju9I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q6F/QtxlUMhx/GalGqOPQt4u1aneflas1nMKpmIm27EihkkKo4tqo45BlJGto53vzugW4AwqDB0eh8P/fTWjbIcRI+kGXrJ8uJpDSwhSJDdrGmDIbyQXWunPv06fu6SWkxGmf7jnbG6wMyeaiHWEdJNwKUiWUtmx5qGkAG9OWI8= 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=Vfk35MJS; 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=+9eJDPYcvheHFhVWSeTXcV93NuGaWmWAwekU/Oh9CJ4=; b=Vfk35M JSUL85oEwdUpaoZywSUhRxjNWZFf91x1byAkI9WKNyJM/QbM1VfS2Fxb6cb2IvHT 1/EXdQaz2aj2f0uLFipQE/ze0asri/1BS+RMssCl4QWqbgQ2Xoa2z1IuQcT7oEFx jDeYf1s2IZJm0VYbTrom+PO5KqjUsZMIYQEhFIQ2FlGgoQ//LRU9/8CgWVdfQ67w mRKX5szDSTQWxcLnn+m7bw0lgL75+Tt1gb10JGDFSy5jiygKviWP/zbmJyLWToBt 7f79pX+sQ0F0Hl139XavzX7SymVIaIUVHIyDTZ3uCmjboWaGdqNZjk5CfBZjy896 Zl7wVryR1CdTCnQg== Received: (qmail 3870202 invoked from network); 22 Mar 2024 14:26:26 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:26 +0100 X-UD-Smtp-Session: l3s3148p1@tj9VxT8UdJNehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Andi Shyti , Ray Jui , Scott Branden , Broadcom internal kernel review list , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/64] i2c: bcm-iproc: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:00 +0100 Message-ID: <20240322132619.6389-8-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-bcm-iproc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c b/drivers/i2c/busses/i2c-bcm-iproc.c index e905734c26a0..3c68d4df029f 100644 --- a/drivers/i2c/busses/i2c-bcm-iproc.c +++ b/drivers/i2c/busses/i2c-bcm-iproc.c @@ -224,8 +224,8 @@ static void slave_rx_tasklet_fn(unsigned long); | BIT(IS_S_TX_UNDERRUN_SHIFT) | BIT(IS_S_RX_FIFO_FULL_SHIFT)\ | BIT(IS_S_RX_THLD_SHIFT)) -static int bcm_iproc_i2c_reg_slave(struct i2c_client *slave); -static int bcm_iproc_i2c_unreg_slave(struct i2c_client *slave); +static int bcm_iproc_i2c_reg_target(struct i2c_client *slave); +static int bcm_iproc_i2c_unreg_target(struct i2c_client *slave); static void bcm_iproc_i2c_enable_disable(struct bcm_iproc_i2c_dev *iproc_i2c, bool enable); @@ -987,17 +987,17 @@ static uint32_t bcm_iproc_i2c_functionality(struct i2c_adapter *adap) val = I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL; - if (adap->algo->reg_slave) + if (adap->algo->reg_target) val |= I2C_FUNC_SLAVE; return val; } static struct i2c_algorithm bcm_iproc_algo = { - .master_xfer = bcm_iproc_i2c_xfer, + .xfer = bcm_iproc_i2c_xfer, .functionality = bcm_iproc_i2c_functionality, - .reg_slave = bcm_iproc_i2c_reg_slave, - .unreg_slave = bcm_iproc_i2c_unreg_slave, + .reg_target = bcm_iproc_i2c_reg_target, + .unreg_target = bcm_iproc_i2c_unreg_target, }; static const struct i2c_adapter_quirks bcm_iproc_i2c_quirks = { @@ -1079,8 +1079,8 @@ static int bcm_iproc_i2c_probe(struct platform_device *pdev) spin_lock_init(&iproc_i2c->idm_lock); /* no slave support */ - bcm_iproc_algo.reg_slave = NULL; - bcm_iproc_algo.unreg_slave = NULL; + bcm_iproc_algo.reg_target = NULL; + bcm_iproc_algo.unreg_target = NULL; } ret = bcm_iproc_i2c_init(iproc_i2c); @@ -1191,7 +1191,7 @@ static const struct dev_pm_ops bcm_iproc_i2c_pm_ops = { .resume_early = &bcm_iproc_i2c_resume }; -static int bcm_iproc_i2c_reg_slave(struct i2c_client *slave) +static int bcm_iproc_i2c_reg_target(struct i2c_client *slave) { struct bcm_iproc_i2c_dev *iproc_i2c = i2c_get_adapdata(slave->adapter); @@ -1210,7 +1210,7 @@ static int bcm_iproc_i2c_reg_slave(struct i2c_client *slave) return 0; } -static int bcm_iproc_i2c_unreg_slave(struct i2c_client *slave) +static int bcm_iproc_i2c_unreg_target(struct i2c_client *slave) { u32 tmp; struct bcm_iproc_i2c_dev *iproc_i2c = i2c_get_adapdata(slave->adapter); -- 2.43.0