Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1125826lqp; Fri, 22 Mar 2024 06:27:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxcYV+osETJMhloWN8gTGMgo4IBOmm4SW6R3E+0YvdjTj9jTQNFf9JZLidtcasjs8qNVZJd36YOYWOTVVl5xbe1XzmGUbbYXP6h2F9WQ== X-Google-Smtp-Source: AGHT+IFJJfYHJATgZyCGdM+n9TKADhIuqImmDHYSb5NP6QnDO1Zc3ceEOL+xhhowRkU9mDxa6IMO X-Received: by 2002:a05:6e02:1aae:b0:366:28bc:71f0 with SMTP id l14-20020a056e021aae00b0036628bc71f0mr3454699ilv.2.1711114056740; Fri, 22 Mar 2024 06:27:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114056; cv=pass; d=google.com; s=arc-20160816; b=SSYdJZSkHzfvxbvSOxmKBaHVrtgwqFVvip7CttOoS3fYKUX2nS0WVe2kla8+/5eDXk Ps7dNj4R8CnzaPaYGanQ2qlGXwqvNOS8MUrVzaWCpaMUWvP9qUueQ4WVZt3Ew77jlU2e us8ztfJW9sKVYZvVJ4FwdHewHf3V3ZXpBlGjVedtPxFmryvJaKFPpPVVSJ5v9bUyQJ7a 23vlI/u5tBbn5EEII0IfBwP23WpP+9PTPkVqIBeu8+A3O5D+9MOZ52FSvAQXmheRcAWk Kpmd4AuZkORP1R9uiZHcYYdmLoCA96stAijxmSUSc5fvm2raPLYs8E2Jp4TaDMJcG5Vg q6wg== 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=o02kBYEnft414jyQ74NQkV+FMLMQv2lOI3Wx7oPtptA=; fh=LgtErTQ92kUnUn1cOyqBra2xzaOPbVX/ceJJQ5d7tr0=; b=NeFYi2ERHyGyS4cWPh/7kMv2ODZtbFqDCduNhseN1A4SvZZ5oADp9c4TDRzxakEDr9 F2uoOHXBSSUmN36LzKMilRruZCoVHrd+hM+lK+nI9dsmCJtzX4qw3cvzlgDK5lC8sYZ2 9IdHAKxl7skCD/GeNvjKYbFoxCCKzjl4DBMCPx6rlc1XKuhjHrVpQkiKOKpOIdT3L6b4 bWzMMcR2nWLbnkFwHhx84poPxNcyt1X8OwaV5bgcfq91YkPtkzIdLR7+qOzkVxIrQo50 S9SPEl0c1GMMBd4ME7hQLaQvESW3JlL/CfjjmyBucM1xElTvOmBWvzSzdaWUz9R6NIz4 SVgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=NgxOpyOw; 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-111482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111482-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p28-20020a634f5c000000b005e83f543dbesi1891962pgl.611.2024.03.22.06.27.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:27:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=NgxOpyOw; 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-111482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111482-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 66F3F2815C8 for ; Fri, 22 Mar 2024 13:27:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 342214AED1; Fri, 22 Mar 2024 13:26:41 +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="NgxOpyOw" 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 C1B1347774 for ; Fri, 22 Mar 2024 13:26:36 +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=1711114000; cv=none; b=b7CXyUvG8FU4nehj9kbGhK4CahXJZmCehP7AMhExUpCydrPIby8cmY/PPbzd/SRahbmlSIOXFaaWW3egbVePFcANJ5ysPSvuFrRTkpvo0RdM8uxZSgRosZI5VD0mZKxbF41aSN7dkOIteIwdcoxUz2GJQkjw+0PCsAiiyG5FvQc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114000; c=relaxed/simple; bh=0eqF1EZ5//2m7IOZIH/6WKxxgiYpU+vphX44onzpqRU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bG8Qo2Xni3iMZjBtp6EOXeiLj6JLqhPPxsPHTvBjon6DuZUGSyjaDIJT9zzzqWZj/yg+JRpgStuaoMYT0zO4ney7/lDKY+zprTgRjQW20sk2YzrXxVkVahBeLcBXNmnq5kFywmHjqznjq0rfmiiRTbCyeHMiIlg+YjOGOyUoil4= 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=NgxOpyOw; 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=o02kBYEnft414jyQ74NQkV+FMLMQv2lOI3Wx7oPtptA=; b=NgxOpy OwJdAPzp5OLNUSi+sT/hYXvyXe217psAAFpnVNwTZPCiWGcRjVRWNNgcXaiDblqb +0HtIJHeUwyceh2iBQNzvyghr+h42rDb/kHGXvL/4bCDYva76IqLQMP7cTiJPPCm PvyIi/4gZE4PfrgfdiFfnvXydnZHjSA5hSQAV+u2RUqFiUqOsE7cOwgV/shdpv6b EmEpNZkPcRWE4x65vlCli5YuL5dbB8Yx9KdQEQDVp2K0S6WAKY3GRP9V/4gdZ7CM Km/GmQgbo6F+E4b8wx30s02/oWhUejSaBmYbWP0+O9YXsaZaeOo4vziZzZMmhplj WdlXBelM16CxYFvA== Received: (qmail 3870139 invoked from network); 22 Mar 2024 14:26:23 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:23 +0100 X-UD-Smtp-Session: l3s3148p1@Q54cxT8UWJNehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Thor Thayer , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH 03/64] i2c: altera: reword according to newest specification Date: Fri, 22 Mar 2024 14:24:56 +0100 Message-ID: <20240322132619.6389-4-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-altera.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-altera.c b/drivers/i2c/busses/i2c-altera.c index 252fbd175fb1..f4dde08a3b92 100644 --- a/drivers/i2c/busses/i2c-altera.c +++ b/drivers/i2c/busses/i2c-altera.c @@ -168,7 +168,7 @@ static void altr_i2c_init(struct altr_i2c_dev *idev) /* SDA Hold Time, 300ns */ writel(3 * clk_mhz / 10, idev->base + ALTR_I2C_SDA_HOLD); - /* Mask all master interrupt bits */ + /* Mask all interrupt bits */ altr_i2c_int_enable(idev, ALTR_I2C_ALL_IRQ, false); } @@ -376,7 +376,7 @@ static u32 altr_i2c_func(struct i2c_adapter *adap) } static const struct i2c_algorithm altr_i2c_algo = { - .master_xfer = altr_i2c_xfer, + .xfer = altr_i2c_xfer, .functionality = altr_i2c_func, }; -- 2.43.0