Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1127343lqp; Fri, 22 Mar 2024 06:29:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXlfg0H0Yl75lsBhyvPJzmL8ax7JiWK5GgdSPff4bhqvXk87k1DYLwVBhuBfVW5+s6z937YpIwHRaO+DzISD0C9M2l5DAgpVOgnYWG55Q== X-Google-Smtp-Source: AGHT+IEvkcvkjsXZBtZ9g7Br2lEiAoPPCyCpm5ACoxnd8Hzgs5rXiDWtVB2XhoYuHn6hLzTqsIyi X-Received: by 2002:a05:6a00:1ac8:b0:6e5:30b8:d46b with SMTP id f8-20020a056a001ac800b006e530b8d46bmr2938238pfv.18.1711114199394; Fri, 22 Mar 2024 06:29:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114199; cv=pass; d=google.com; s=arc-20160816; b=embPhZt1VxHGLX+i5PooFli+BxvAFuHzqSoPLKR6VU571uPxr5M9YqCs6gesejgW8B n1otAlKgAX1NOtU4V8x4g/ANvetjmdbDL2XY8p8UpXfcf/Ns4WObwtyHzrZifV4btEbH 9vjPPnOH9qKYyt5iaH7HAk34P5mjiFKLl7YwcGgVIvSAyu3VCbptz+qGoK4G89XkjmR2 OV6bQHIj0Sw+ISYDnUILvTg1jn+QC2K0/KjKoDu3f2FtagvpD8UdfQOHY4Nkk24NI/Uj KPcboI0aV7tRDIGUizERZNnukrgqTdAH+i0ocqv7BhoyD07hOW0/PRZ08ANdz7drP9qz 4BXQ== 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=EAolHBSknmyHAIRGgTuBToiKe0Qd+7DMZZj0gDF7Amc=; fh=k/A9TvsIuSzruuaN6PB0Sg7ZN6OaOsMMc27I2jQsCnw=; b=FPiZBDwOZUX1QKpNjBi4cjRGGmHbf5xl1WltpV0ex7Z5dZ3j3fe0oRpB3lGEPTkTf0 OKgDk9oBjKgmkeOM82edWcmeEfn2xkCLc91ubzHWQnNm2fg+dr5IRA/KEvCtFF9/cHI7 8NiaanP9DB+KEu1RlEMhOb7CdH8G+LosZKOZsJw56xacVeWUXkeWYT+NfhK/61/znqL3 WhI/K7eTB5IITs1tArNM4GDNJxsl+ql93ah6KMW5nLuttNYvljOyGipmyQ33Zz2xWgOr 2PvoJnL84KKL82Br4h1qO2XypCWfq/XXtHQGdUciuhsWMZygqp0tM9Ev60by5tlrXcC+ ZWlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=N1vh2CY6; 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-111493-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111493-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 du11-20020a056a002b4b00b006e5799cefc4si1904807pfb.314.2024.03.22.06.29.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:29:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111493-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=N1vh2CY6; 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-111493-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111493-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 04F70281C5C for ; Fri, 22 Mar 2024 13:29:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 070E35FBA6; Fri, 22 Mar 2024 13:26:54 +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="N1vh2CY6" 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 BC1594644E for ; Fri, 22 Mar 2024 13:26:49 +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=1711114012; cv=none; b=aZrDC15O1Gz30W0rccUB9oOz3dMkUe3CTYfpdkWulm/7ZzL9W/V8YQeGHp5hJoLg86KAL6DJJ8Ka2W23WIIlI61+2B35QUcXXsX8gWNr8EfJOJImXtRER2dxIa4Jsc+WpawN6XnG+hcDzv40GBnD9+A4hKyRvwCq62cRuudlrIc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114012; c=relaxed/simple; bh=+VaxMN7cZnZJjhL9SNR43NWlUn9PaNRHhMOl/YlZsqY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T3sZgA+gVtrmhsMDLpcTGz26Yjt57wC5iYJEuVKu7/uqnK+er3mSJG6s7KFvtaTAiten9xRf7VqfQYkF+T4iYgeEjvcs7VIjkCls7R54g7SafBe/FZKMh4GnQm9e0TkPzKmLJSxXXliFf7CTfxrjGpSyTpApwE0+S3VwlrmvDZ0= 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=N1vh2CY6; 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=EAolHBSknmyHAIRGgTuBToiKe0Qd+7DMZZj0gDF7Amc=; b=N1vh2C Y6glG5MRwaBGI0w+5dr2w3TJMvEHi9bZTIuPfPkRF5KOBkEpp3vSs/D/qqkgzmIq T0MfVmIJJF4mbd+yXDq4c34FSkEZTmJYkPenM6fqO1Z8f6EG0ORHWs63/hmmsMuP EBa4nCRh/MqZ5EP/akN7B3mCjK/kPe6vU4ir4v57dC4heOzWhCiLOm+L177TuC4O MK52+Sk5YYLO8NmakmY+hhkB64W/d6YcH/3Ihs0J4/sxLYG1dlfVK13wr2ri7kSa vQYOta2Hcw7EGIKwk3BvrTZ+4uUkU7ZOKATLhLFdoF2KxoTzzjgzE9g0o87yvrb8 IbNMHGAOAYo5wvQA== Received: (qmail 3870347 invoked from network); 22 Mar 2024 14:26:32 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:32 +0100 X-UD-Smtp-Session: l3s3148p1@F4KwxT8UrOBehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Jochen Friedrich , Andi Shyti , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/64] i2c: cpm: reword according to newest specification Date: Fri, 22 Mar 2024 14:25:07 +0100 Message-ID: <20240322132619.6389-15-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-cpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c index 4404b4aac676..306e397fec0a 100644 --- a/drivers/i2c/busses/i2c-cpm.c +++ b/drivers/i2c/busses/i2c-cpm.c @@ -402,7 +402,7 @@ static u32 cpm_i2c_func(struct i2c_adapter *adap) /* -----exported algorithm data: ------------------------------------- */ static const struct i2c_algorithm cpm_i2c_algo = { - .master_xfer = cpm_i2c_xfer, + .xfer = cpm_i2c_xfer, .functionality = cpm_i2c_func, }; @@ -570,7 +570,7 @@ static int cpm_i2c_setup(struct cpm_i2c *cpm) out_8(&cpm->i2c_reg->i2brg, brg); out_8(&cpm->i2c_reg->i2mod, 0x00); - out_8(&cpm->i2c_reg->i2com, I2COM_MASTER); /* Master mode */ + out_8(&cpm->i2c_reg->i2com, I2COM_MASTER); /* Host mode */ /* Disable interrupts. */ out_8(&cpm->i2c_reg->i2cmr, 0); -- 2.43.0