Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1125572lqp; Fri, 22 Mar 2024 06:27:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWTQWfZMUYZc5K81GZZLp15C1phenrkuPS4Nb+a7fHCMTXkseW57VJJht1TBc86TbeCdqTAIOUQxKFuiFs7ldBmUWup+qpfUnN8uuqnjg== X-Google-Smtp-Source: AGHT+IFjEUMl49p0TGWHEZUvvfRTvmT+StWw+X5+Jlyh8Z+hT578zXlGbMRl2ntt16FiNcAZnLQX X-Received: by 2002:a05:620a:44:b0:789:db3f:979f with SMTP id t4-20020a05620a004400b00789db3f979fmr2110495qkt.25.1711114035147; Fri, 22 Mar 2024 06:27:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114035; cv=pass; d=google.com; s=arc-20160816; b=jh838A/UYxlRXQYPUlm4VInLvUpjPyAVorSF7HxBRJB/k3T7G4ALGxSeYsevPFuAT7 hiRiQ4kO7X1uVBOXScA7Vl1hfZoRhyWmYmaTC7J9k1rkAW+02/vTR/P1MZSxkJmJjyDU +GRtoCMeqrdIviFcOUcpOAofo6VG3NAMZ+gWHOpvXgSwUzOGIlXYh39V/mjZsB7z4Uy4 DmOcV4PhpBNVEqiz2aNtVINXXUiicebtZTdlCV524EbfvCX/n5EcOugkBdiGesLZ61Pw WmnmHG2O/aJB9CXvGIzJfJ9qnUnewCpIxOtjV45V0XGEfl3fpM5vmrKlMfeSdqB43ZpT 6cSA== 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=G46JTusxROSZbvDtQb/zHy9QMZR61747Z2bE4tfyB28=; fh=Krxc5qk77IOrBvfOxa1pexOuiZ7x3QH6VZHnug2UuzM=; b=bA9xUDILdCPrAViznKGV9PKAQ9LhIwYCdaDAFbSBJ3iMVef0F95MI0oDT6rZM/rZuj yKsDd69LyLAeacSUQFUd0/JkpSpX6S3w7q76gzhZRCWVLLvkymB2vm5fZdJtTZBda2e7 y4wEOL7SWb1+czCsZJO4drldCknaCa6VNEp5Sgcwezn7dujde5lgBZUIu5FQR1XFmzc0 MPb8hEs/nGOrrYWSSGccjOu/xgB+ZaURiXVcXE86JKlV7W45G5qeNHaHgKNgy97ZkuFH ZNyEP9cOYJiPWENXOo65fU+A3xtQHUnhsz8XEggqb6DK6CeGHcr/cmMPgHmClH7tT6zp 2yFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=Gdezwygt; 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-111481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111481-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c29-20020a05620a269d00b0078a3a448223si1345159qkp.85.2024.03.22.06.27.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=Gdezwygt; 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-111481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111481-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DA7BC1C209AA for ; Fri, 22 Mar 2024 13:27:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18ACE481B3; Fri, 22 Mar 2024 13:26:40 +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="Gdezwygt" 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 3507F4778C for ; Fri, 22 Mar 2024 13:26:37 +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=1711113999; cv=none; b=R0+KFSql8/7TVTZkYF0OIsXbmtHdw/26TWBVO9ouggmvUEmZk7AXC96Qy+HTLeUnKut/a6dcZijZX9qhvJPmdXkrYg7iTDRtnfQJ+w5F1RJrq1cHmZW8KKxaWzwYecmV1YyeezFoC3F4Ddo/uVBq56Stkqay/CKucD3Ldl8rzYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113999; c=relaxed/simple; bh=VV2JXqlZIXNmDwvyRmPDlSHbg6dDzm/mw4VXKDld0GE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RvadvKf449TEIlo+Z5d9QtQ7ed1hiy7JQpeDrVwyjRR0yPu02Pk13nRnCAUipgei+NWp5p+KPaXGm0YsMW6sMRBlXUKufW6psMG59WoU0dCLI8Q8v3m0XTQ+uCDyvyfsTNnoeqj1vREI+gpPcR6T2bHrIvMjo+41qtBn+wA8OGc= 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=Gdezwygt; 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=G46JTusxROSZbvDtQb/zHy9QMZR61747Z2bE4tfyB28=; b=Gdezwy gtVYvG6fUBnafQNtvPMSn+20p7q9ArY2uYJGuMdTJ3ram/pYm6SfTNor6X25oRVK fYLkMTgokKUY7ao4UILIqWUXpJHeVU9mfrv6d0u1M1/7hmf/n/kdYtpJqq3qBNMK nLAKlCfIX0HIpfkrKDqvRq5yOrqo3A8RfcXz8OXTmozYZnpebfs/3oIbpCSbJk7X rnZrpXRChgng9c4gjWTwnJeV0cf1rtqZqI606XoHeEO9WQFvG3Tp3o23d/ReNrIC AaQ5tQLY7ftt9n4xTh+aRoPqZrSig9kVsliEYtQWqZI9b+95sOHpCQ/d2WAXaYNn zuwfZFVUV9RR80oA== Received: (qmail 3870157 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@vfApxT8UYJNehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Elie Morisse , Shyam Sundar S K , Andi Shyti , linux-kernel@vger.kernel.org Subject: [PATCH 04/64] i2c: amd-mp2-pci: reword according to newest specification Date: Fri, 22 Mar 2024 14:24:57 +0100 Message-ID: <20240322132619.6389-5-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-amd-mp2-pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-amd-mp2-pci.c b/drivers/i2c/busses/i2c-amd-mp2-pci.c index 143165300949..2ad0bb4661b4 100644 --- a/drivers/i2c/busses/i2c-amd-mp2-pci.c +++ b/drivers/i2c/busses/i2c-amd-mp2-pci.c @@ -112,7 +112,7 @@ static void amd_mp2_pci_check_rw_event(struct amd_i2c_common *i2c_common) struct amd_mp2_dev *privdata = i2c_common->mp2_dev; struct pci_dev *pdev = privdata->pci_dev; int len = i2c_common->eventval.r.length; - u32 slave_addr = i2c_common->eventval.r.slave_addr; + u32 client_addr = i2c_common->eventval.r.slave_addr; bool err = false; if (unlikely(len != i2c_common->msg->len)) { @@ -121,9 +121,9 @@ static void amd_mp2_pci_check_rw_event(struct amd_i2c_common *i2c_common) err = true; } - if (unlikely(slave_addr != i2c_common->msg->addr)) { - pci_err(pdev, "unexpected slave address %x (expected: %x)!\n", - slave_addr, i2c_common->msg->addr); + if (unlikely(client_addr != i2c_common->msg->addr)) { + pci_err(pdev, "unexpected client address %x (expected: %x)!\n", + client_addr, i2c_common->msg->addr); err = true; } -- 2.43.0