Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2818167pxb; Sun, 3 Oct 2021 06:36:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywEh/sTBInz8oQ86y8QQq9WUk2bdUQigneMWEcGs/QHKQRQWV+DdjakwJwvDnAUA/zwesf X-Received: by 2002:a17:902:6f01:b0:13b:7b8b:84a3 with SMTP id w1-20020a1709026f0100b0013b7b8b84a3mr18536731plk.40.1633268161041; Sun, 03 Oct 2021 06:36:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633268161; cv=none; d=google.com; s=arc-20160816; b=jqNdW1RFJ679pBws833MrFFYO4GptqciV3yJXms2z7W9iKuONtxGHWylKP8UD/NUIy CX8AKshqD0l6GA2vTLXoGmjaq0DDeJQgq5EDb/yffm6tAOIex2aR5pFkC45mUeaz+Hcv G63xDUMrLH7JI0ikfbx+b9VtNkE3NXK4f10GnXYUWYAieBwlntGDHcxIz8jtTh8lHSvw HCFY3ujHISZR+uF41yd1/uIzs6bIMcEiRBOJh2dp4fZGIwNZYQNg3dhnuSYtjt3ik4wI bNAKuk1iOSYr+ABzMm/7S7Mu2K5VABMHeOh5hLRsV00RG4jkuhdpbuh8v+rX3w0hGNgE TBJQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Pvs0gicvaFyjP0hgJFa4i9LD8zRmZXhHgPSJ+metaAA=; b=HOAhAI3G8rJJ7OUWCwNPMfrZ7NO0mSxva9jwhPgQPGZ5pE0GjypL57YFYzvGFoFKVo 0oIGVfpJ0FZS3R4qriw2xeROwDOmiENvcmciFuL1kx3iyRUZO4XfehCKick30gDuKYHu eOIK1MThAx5tmfyP3tiS99ErBQ/TT3m0bCUSD6OI4J/tx6Nrm5cfsgEM7YX9UEMWRmsa UsOvPLyyN3DtyH3r0IdsJktbn7v5CuJZE/mLb77pheWtfk478WGSkoiwnjLXBNfRTYQ1 gZT3b7sKgmw7mSzOeaUUoqbpiJ+j0dRzM7GM73enDRrB5EC8hWxnpcThxmGBoIhl8ZSd +OYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=qnlJoFp1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w7si13578767pfd.125.2021.10.03.06.35.47; Sun, 03 Oct 2021 06:36:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=qnlJoFp1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230368AbhJCNfl (ORCPT + 99 others); Sun, 3 Oct 2021 09:35:41 -0400 Received: from vulcan.natalenko.name ([104.207.131.136]:58370 "EHLO vulcan.natalenko.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230366AbhJCNfj (ORCPT ); Sun, 3 Oct 2021 09:35:39 -0400 Received: from localhost (unknown [151.237.229.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vulcan.natalenko.name (Postfix) with ESMTPSA id 3C059C1D331; Sun, 3 Oct 2021 15:33:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1633268031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Pvs0gicvaFyjP0hgJFa4i9LD8zRmZXhHgPSJ+metaAA=; b=qnlJoFp1jMQf9wtsbzgdJNsdwr4ft+1mmVuJBbcAVgj4g8ipd69gOVCqEOGbve2+0Isgzd 5Q1crBrU7yFgqpsSyYXNXUM3sx8T2mHEAgK9TioGuIAbrUwUzGYqUe/af97g50X5bt2XIe 3qrAH/UG71ajpOp89NxLS1zIxZfN8jA= From: Oleksandr Natalenko To: linux-kernel@vger.kernel.org Cc: Eugene Shalygin , Denis Pauk , matt-testalltheway , Kamil Dudka , Robert Swiecki , Kamil Pietrzak , Igor , Tor Vic , Poezevara , Andy Shevchenko , Guenter Roeck , Jean Delvare , linux-hwmon@vger.kernel.org Subject: [PATCH 3/3] hwmon: (asus_wmi_sensors) add Pro WS X570-ACE Date: Sun, 3 Oct 2021 15:33:44 +0200 Message-Id: <20211003133344.9036-4-oleksandr@natalenko.name> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211003133344.9036-1-oleksandr@natalenko.name> References: <20211003133344.9036-1-oleksandr@natalenko.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ASUS Pro WS X570-ACE also supports accessing sensor information from the embedded controller via BREC WMI method. Hence, add it to the list. Note `T_Sensor` is not supported by this board. Tested by me on this hardware: ``` Base Board Information Manufacturer: ASUSTeK COMPUTER INC. Product Name: Pro WS X570-ACE BIOS Information Vendor: American Megatrends Inc. Version: 3801 Release Date: 07/30/2021 ``` Signed-off-by: Oleksandr Natalenko --- drivers/hwmon/asus_wmi_sensors.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/hwmon/asus_wmi_sensors.c b/drivers/hwmon/asus_wmi_sensors.c index 98e761861601..319c879624b2 100644 --- a/drivers/hwmon/asus_wmi_sensors.c +++ b/drivers/hwmon/asus_wmi_sensors.c @@ -35,6 +35,7 @@ #define ASUS_EC_KNOWN_EC_REGISTERS 14 enum asus_wmi_ec_board { + BOARD_PW_X570_A, // Pro WS X570-ACE BOARD_R_C8H, // ROG Crosshair VIII Hero BOARD_R_C8DH, // ROG Crosshair VIII Dark Hero BOARD_R_C8F, // ROG Crosshair VIII Formula @@ -44,6 +45,7 @@ enum asus_wmi_ec_board { /* boards with EC support */ static const char *const asus_wmi_ec_boards_names[] = { + [BOARD_PW_X570_A] = "Pro WS X570-ACE", [BOARD_R_C8H] = "ROG CROSSHAIR VIII HERO", [BOARD_R_C8DH] = "ROG CROSSHAIR VIII DARK HERO", [BOARD_R_C8F] = "ROG CROSSHAIR VIII FORMULA", @@ -130,6 +132,7 @@ static void asus_wmi_ec_fill_board_sensors(struct asus_wmi_ec_info *ec, int boar ec->nr_registers = 0; switch (board) { + case BOARD_PW_X570_A: case BOARD_RS_B550_E_G: case BOARD_RS_X570_E_G: case BOARD_R_C8H: @@ -161,6 +164,7 @@ static void asus_wmi_ec_fill_board_sensors(struct asus_wmi_ec_info *ec, int boar } switch (board) { + case BOARD_PW_X570_A: case BOARD_RS_X570_E_G: case BOARD_R_C8H: case BOARD_R_C8DH: @@ -174,6 +178,7 @@ static void asus_wmi_ec_fill_board_sensors(struct asus_wmi_ec_info *ec, int boar } switch (board) { + case BOARD_PW_X570_A: case BOARD_RS_X570_E_G: case BOARD_R_C8H: case BOARD_R_C8F: -- 2.33.0