Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2688754rdh; Wed, 27 Sep 2023 09:41:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHEbc/WR/DoLlYIEDF6WW+DfHJGgXihepT+v4OeWfERoxLjVOMInnvyxhFIjqqux93oF7+U X-Received: by 2002:a17:90b:b04:b0:268:414c:ff3 with SMTP id bf4-20020a17090b0b0400b00268414c0ff3mr2259648pjb.23.1695832878585; Wed, 27 Sep 2023 09:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695832878; cv=none; d=google.com; s=arc-20160816; b=0gCgZIwpVOygvVoKx54ioEZeg5r4sL5s5F6GXxr1anECwaTrAS8JBdJTjC3HgDenBD uIkeEkw7L9kUZaDoqSBfknxnx5PKsdSoNNk0jgD2irTF4iyNDdjcN0NKl0F2iEOIyR0D F9WBeCWB4NB4jgbD5UFLc/QBCbAu3raYTdJfvRyKpqDRvOwVdANBWyC3dFbl8MjtEWmg EkXfeE3CvhAqB7ir2a36tJVpan10r5KarEQG0Z3RzZGUXCP5olMFC7R7Ay51LBmn+EvH s1XfBgBSj7ISIzQpM4u9rYe3S9ZFIVFsq1JWUnkIkpiX/cfBF4k3Gc3g69Cu/3P/aSxF 0uaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from; bh=7FvK8kbjbXq7F9iCVXZN4W/8iWUVohlkUaTaJ7sp3HA=; fh=A2fpulUSJa3Z3RbyjIFX9wjax+SVXSZM7OKN6SOoJBI=; b=wSoQxaxkRlK3aBk8P7Z0o2t1hLQWQQPDNG7ROx00MLOZ+lIwNVKXS+DYtWwY2FUTPR VHeDUoBgjaVcEFoLUGf7biG/4hQkeokxdN5HGNe4xbSDLnGWzbDBWr1th5hJ4Nxynf5a Ywx+6Rab6+vdB1QSzd6o8yq8v0C9rcXDuQLlJBVBd57xHUe5v6E8gqvVAxmE29BLIvkk 7fN4WeUJ/uI1DzJIrjikSPARRgMKRjMSloS+a3if9VxVZ4HQBbLo7Y3ajRVcE/i5tDgM poathvPfM3WL9kcqT3oBYoziXgSILMJpbgPEu4IZZqsfnvFTJKklB1fF3TEEKLYW6hZ7 4XeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x6-20020a17090a6c0600b0027724d42e7esi12113232pjj.123.2023.09.27.09.41.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 09:41:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C447C8116E53; Wed, 27 Sep 2023 09:26:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231714AbjI0Q0o (ORCPT + 99 others); Wed, 27 Sep 2023 12:26:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231657AbjI0Q0n (ORCPT ); Wed, 27 Sep 2023 12:26:43 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 87DCCE6; Wed, 27 Sep 2023 09:26:41 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 707A21FB; Wed, 27 Sep 2023 09:27:19 -0700 (PDT) Received: from e103737-lin.cambridge.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1AA363F59C; Wed, 27 Sep 2023 09:26:40 -0700 (PDT) From: Sudeep Holla Subject: [PATCH v2 0/4] ACPI: PCC: Define and use the common PCC shared memory regions related macros Date: Wed, 27 Sep 2023 17:26:09 +0100 Message-Id: <20230927-pcc_defines-v2-0-0b8ffeaef2e5@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAKJXFGUC/22MwQ7CIBAFf6XZsxgKQqyn/odpDIXF7qHQgCGah n8Xe/Y472Vmh4yJMMOt2yFhoUwxNBCnDuxiwhMZucYguJB8EJpt1j4cegqYmbjMqFDKWXsJzdh SO95H7T41Xii/Yvoc8dL/1v+d0jPOuB+EMr1WV+9Gk9azjStMtdYvP/zP7qQAAAA= To: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org Cc: Sudeep Holla , "Rafael J. Wysocki" , Andi Shyti , Jean Delvare , Guenter Roeck , Huisong Li X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1339; i=sudeep.holla@arm.com; h=from:subject:message-id; bh=lwT8ZnKV+w+WbSm9j2obr3XMxv9qHzx8UZUyVSqGOk4=; b=owEBbQKS/ZANAwAIAQBBurwxfuKYAcsmYgBlFFe/GK8S35+7w73n13E+CWi7SnJXnak49uWZd KPcDX+7sHiJAjMEAAEIAB0WIQS6ceUSBvMeskPdk+EAQbq8MX7imAUCZRRXvwAKCRAAQbq8MX7i mB7PD/9GdBYmtGCqO/u6bYiAspw2Jk7CK5hdy7XxEu3RAaB1ojcdnNS87mc28fF7z+EvCfuYrDO eA2OX2Jpz3XWXmDCVFi0hCHxGjXPUETYwut8AteGPNb0Q4WZHcCPsakFSu5m4WjrCbQ5bcav+7T J/zY5lIyaw+xB+7zu5Lu2+5vTDvUaHlQMPb/VANx8jDahjIK2X/sSP7F1KJqHnC2k0Z/hG6wphs Ro2XfOb0c8Mg3H3jrcWRjvggNoP7plggYwGocwTiJVmqLILnMQW+OVIEf1RcryDCjyIVddtaNUo 8Mjv9DYm35gIMA6rM7GzEoGGCsHEX2p40/Pan33NI6myfdTVnumh2ml+03D5HhZnFrdXpiTpxl0 oGv/2abXj+SQD9s0ZzOGdV4jL9IAPsdW+9s8xmJyaRG7JB59+jIrH9qO+6gTkjE4OVu6M7UT4Ir cB67bUJ22oz8ksu8WGZ7esgXnqv4TOcLHIynxcwiQAQWKaXNS9ahwOR/NarGzS8/fsjyVuNxo3N eBypEzKSTHqgrha1KXfq85OGPhsrecXEGsLQtmdiN4ADheoDUyQJQI6GbQdPydzyRz5ymyhfDFu Tj6oHnjhznO1cZeyhRBVvPsHdXsEy5Tgba0dskTMoUs/gmXhRdFdbdk4qaHALTkPJwBWRgT1otc iFOW/9awPLBz/Ew== X-Developer-Key: i=sudeep.holla@arm.com; a=openpgp; fpr=7360A21742ADF5A11767C1C139CFD4755FE2D5B4 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 27 Sep 2023 09:26:49 -0700 (PDT) This set of 3 small patches intend to consolidate and replace the existing locally defined macros within couple of PCC client drivers when accessing the command and status bitfields. Signed-off-by: Sudeep Holla --- Changes in v2: - Added review/ack tags from Andi Shyti(I2C) and Guenter Roeck(hwmon) - Added bitfields for Initiator Responder Communications Channel flags as well - Migrated kunpeng_hccs soc driver to use generic PCC shmem related macros - Link to v1: https://lore.kernel.org/r/20230926-pcc_defines-v1-0-0f925a1658fd@arm.com --- Sudeep Holla (4): ACPI: PCC: Add PCC shared memory region command and status bitfields i2c: xgene-slimpro: Migrate to use generic PCC shmem related macros hwmon: (xgene) Migrate to use generic PCC shmem related macros soc: kunpeng_hccs: Migrate to use generic PCC shmem related macros drivers/hwmon/xgene-hwmon.c | 16 +++++----------- drivers/i2c/busses/i2c-xgene-slimpro.c | 16 ++++------------ drivers/soc/hisilicon/kunpeng_hccs.c | 8 ++------ include/acpi/pcc.h | 13 +++++++++++++ 4 files changed, 24 insertions(+), 29 deletions(-) --- base-commit: 6465e260f48790807eef06b583b38ca9789b6072 change-id: 20230926-pcc_defines-24be5e33b6f3 Best regards, -- Regards, Sudeep