Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4793541pxb; Mon, 28 Mar 2022 03:34:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj4DtAqhV5ST2UzGkjElfhgMwzMX/FDJ0ocOkwyUzRnaTfKHhE5UNz6RP1mQlju5Syf1Po X-Received: by 2002:a05:6e02:148c:b0:2c7:9d31:404c with SMTP id n12-20020a056e02148c00b002c79d31404cmr5399481ilk.56.1648463679928; Mon, 28 Mar 2022 03:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648463679; cv=none; d=google.com; s=arc-20160816; b=uM65iLAfdEzwyJ9JH8ImGvsQ3g+Hgv5n6fAPv8KEwa4lPIXaL37FLFPBgMuNuUzYPW NgZEeWBdiYoXGKdtMs+5gVdV3pg6hmeIhyiSfaqgP/CU8wqTUwWipu+XBRXQ5RqtO5H1 NVDf9ImenA5K1lHzzQtcmJRXos9G91roklsfP8G5Mb7lmKSu8mXNyX9C7EsZlEde3Q+L Zpyq8q1QKbihcDv/SEC9kJLjuw9mL8S+yKiqF8ISnres0aaCzWotjjZX/57Ir9fnIp3h Oi76vvJ1EPvXoUGdKQF3kQ1d7mOSo7OU3sWISq1GpokHNqmkIr0S7OgQSMpCa/4FXuC5 o33A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BiW08mGrW/P2Qfz12hcyjdp5Im5rBtj/BzAioF2K6ok=; b=ZfOPjmaYwLnQWBQPlezC+aJvmFhhZknSLcoTZSEYkAGD/958Jmb1DXyCOyM+khK3/h qOuB7dI4DFtedAPpwHVrpSYcuj0bZRoP162K0BQu3YIWCSDI8rPpBPaBO4jDBQxDN8i3 yEgbyLslqu8/oOez77PF0pnc8NaC4u/1KfJi3bbH8gJ26CMVtkzOLV65abGRE02U48QH z3v18jzffXSDhhTMPVAm8RKkfg1qmjPt2w89yggyyCf3O0IVTotw09BGlj234UkIuqcc 6UkbWG6dXqzLrUI8nZQaPPW756uQrCvp/CgaONGnwL1Xp6iJu8+xn0ZdM6IHb3hd9w4Y Yl9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GvdAGJNF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c26-20020a6b4e1a000000b0064958084508si10192712iob.37.2022.03.28.03.34.27; Mon, 28 Mar 2022 03:34:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GvdAGJNF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234141AbiC0MQr (ORCPT + 99 others); Sun, 27 Mar 2022 08:16:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbiC0MQq (ORCPT ); Sun, 27 Mar 2022 08:16:46 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66FC737A04; Sun, 27 Mar 2022 05:15:07 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id lr4so15053825ejb.11; Sun, 27 Mar 2022 05:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BiW08mGrW/P2Qfz12hcyjdp5Im5rBtj/BzAioF2K6ok=; b=GvdAGJNFZbFBKz4XXMJ2vU7F8YMboGHFplP8NxflbV3EAWaem2FlkQ/CqvKHcYGBUU 1Bf3Zt6WPy4T0u/lIT8UoCbnorFZx5LBFM/MTOl8LqqI6LHhvruAjeqmgd7EVt2MFsJO WHrNDOp7e/aHW4g0TvxZ0GBoD1GJMvN/ogijD5h5KVM7BYU1m74TvRKBuhdmjBbV5s7y B277Vsg49RknWnxHLSd3BWzDNu74VjjblmrAlBj5xxR0vOux2GfmDKDfKsVaxyR/hhmi VczFavVFbHokr6tthKV1MLvWhCyX7yA/H6JYI4+0Su/K/ncXO71K/2Eb5bC8krylgezk 9XbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BiW08mGrW/P2Qfz12hcyjdp5Im5rBtj/BzAioF2K6ok=; b=4jCBChIUPLvAfKdya1TRIlfcAFh9lLExNDRQbp2I+QRk9uAgh9ab4WWf0hySPnFXfg cPvIKxyVAoQRK6eBMuuVzOsY9SxnAHyFdDkF5dPyU5gtBS2y9V+IMHvOPSsN8mWFG6dI Dqg4uHUS508xZmSSTZ3JzIWPODGwtrFca9hxyeo6Aym2QCH6EjD52VbLZnZ9qfRZTyQq +z0i+1Hw7N6KvlVVdZ9Vf3UMzb8h5Mj/8gak80xhsFd66jDQDUnGriFDgxVFBzIw7pnr HPc6+VzKuoSDzxvIeM504Ib0zs2cbHHObCYIWReNHFV7D0XB5N23DaSa0aKwTzRtoQjE vzgA== X-Gm-Message-State: AOAM530HRRipCVvJAolVUOby/AAG8xDsVcjncdtNu5ZooT85Gfaj46MU 5XzYJaBLrU5Hyg4siSkUm5utSSLXhEUDyw== X-Received: by 2002:a17:906:1384:b0:6df:c7d0:9131 with SMTP id f4-20020a170906138400b006dfc7d09131mr21231034ejc.134.1648383305620; Sun, 27 Mar 2022 05:15:05 -0700 (PDT) Received: from tiger.museclub.art (p200300cf9f06c2008407e4c213cb9d01.dip0.t-ipconnect.de. [2003:cf:9f06:c200:8407:e4c2:13cb:9d01]) by smtp.googlemail.com with ESMTPSA id hg11-20020a1709072ccb00b006cee4fb36c7sm4530127ejc.64.2022.03.27.05.15.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Mar 2022 05:15:04 -0700 (PDT) From: Eugene Shalygin To: eugene.shalygin@gmail.com Cc: darcagn@protonmail.com, Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] asus-ec-sensors: add support for board families Date: Sun, 27 Mar 2022 14:14:00 +0200 Message-Id: <20220327121404.1702631-1-eugene.shalygin@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Users provided information for boards from AMD-400 and sTRX40 families and demonstrated that sensor addresses differ from those for the AMD-500 family. Also the AMD-400 family board uses the global ACPI lock instead of a dedicated mutex to guard access to the hardware. This patchset implements required changes to support other board families: - per-family sensor definitions - options to choose hardware/state guard mutex: an AML mutex, the global ACPI lock, and a regular mutex in case no ACPI lock required. These changes are used to add support for the PRIME X470-PRO board. Eugene Shalygin (4): hwmon: (asus-ec-sensors) introduce ec_board_info struct for board data hwmon: (asus-ec-sensors) implement locking via the ACPI global lock hwmon: (asus-ec-sensors) add support for board families hwmon: (asus-ec-sensors) add PRIME X470-PRO board drivers/hwmon/asus-ec-sensors.c | 431 +++++++++++++++++++++++--------- 1 file changed, 310 insertions(+), 121 deletions(-) -- 2.35.1