Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1630041pxy; Mon, 2 Aug 2021 06:37:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWu9pgOyOVmwrzPoSpaW+gYzUxxk8H0BostWq6OZnl7R9Sjfkzg4yLPSK7ZmhORwMjoL6e X-Received: by 2002:a05:6602:1647:: with SMTP id y7mr831772iow.30.1627911434062; Mon, 02 Aug 2021 06:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627911434; cv=none; d=google.com; s=arc-20160816; b=VY+WIz1CnKTkReiu9ob841g1FymWx+1ZDUK3i4xJdWwZ9iX/8vav2Y3jRqjMBCXQJe 29ah5GPID2SxKNhLaRENetF3k8ERTF0OU56ET9coH2hJj3gGD9wC0c40he7Z2qgzpy4F PB6wmFBXz+OacsmNCZBsp3RHqVqxbLaBCyX+G6AXL4VVlKsTxiUxK2JtundeVGbutTcP 6ucmbNjgl4OhVahLpPFD+C3+lvUdJgr/KPE6P1WqHm5Rx+ia8JoQxPm/uqlq6i1uVlKR o8fwo/wkhCKpcEas/eCdqln2kjfHX2tfi9tzb1TqLj0k3ki+VrhR7sxlwFeSltE9tc4G 3rIg== 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=fpzHzOgb2FZjPrS+PEZ6zZ/AvzAw7jgjSdIsGJX7H8U=; b=jSScPK4zJk50RnEV3FJSv+ZuSq552gF9Dnz9a9ykope3KO6ogkVfcAZioAvfMBTnXY 7pJ+xJmCVFK8IPphbRX3u1T5EgZJptiwWPj0Oyn98vLvLtihP3CJp1QOODTOCcq1dCJ5 MUsZloATKF3ZKLamu1EAvPTBYdWWDi+4WmME+1d7sr1dpiG6lU+ReVxSgQhLX85n3unf zu0pm46FHrLNePqlmnGe4iDSGNLf+OzEVA7hT/pVTY3yJEmmhxIMsQASwyI1I+V/sySw BIwOYql8xNHBaruhpcT3c2AOLXp4A4C1ZC8bYs0t141cGS8WnDsxQxf4lGZgxesvZsmz MSTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igalia.com header.s=20170329 header.b=F+dhpVbq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si11766703ion.84.2021.08.02.06.37.00; Mon, 02 Aug 2021 06:37:14 -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=@igalia.com header.s=20170329 header.b=F+dhpVbq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233963AbhHBNf6 (ORCPT + 99 others); Mon, 2 Aug 2021 09:35:58 -0400 Received: from fanzine.igalia.com ([178.60.130.6]:41368 "EHLO fanzine.igalia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233925AbhHBNf4 (ORCPT ); Mon, 2 Aug 2021 09:35:56 -0400 X-Greylist: delayed 1180 seconds by postgrey-1.27 at vger.kernel.org; Mon, 02 Aug 2021 09:35:55 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From; bh=fpzHzOgb2FZjPrS+PEZ6zZ/AvzAw7jgjSdIsGJX7H8U=; b=F+dhpVbqJxjOgwYB+uNEKP8zlopKAt3XrenCUhacGZylWVWb5m7GSirgA20/RwN9Iqsypr1azcvGtZnSfZ079rtqsmNoehjPPDZ5fgoiWhVXQev/NwgULxAWLcn3IQDOespHjXysjam/QSatVYLqXIHxrbY0JaJ+mKlLJ0hfXot2vQ+WTLaY/gLbGT/j3pZPhuQjfcZNnElTcm+qy94oUWZZ6kdYYm2hr49snMiu9RUkQThvlppksr6oIjJQ/idv0C23wy8GKj0zqQTCWJqL+li52MQkJGHD1PaF2T/krS4PeFgWq8pk3A0GRBYnSYz9/djB8o1WuMtJHImIhbZSeg==; Received: from bl23-140-245.dsl.telepac.pt ([144.64.140.245] helo=trinity.bot.igalia.com) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim) id 1mAXnX-0000VB-Lo; Mon, 02 Aug 2021 15:16:03 +0200 From: Carlos Alberto Lopez Perez To: linux-kernel@vger.kernel.org Cc: linux-hwmon@vger.kernel.org, Guenter Roeck , Jean Delvare , Pali Rohar , Carlos Alberto Lopez Perez Subject: [PATCH] hwmon: (dell-smm) Add Dell Precision 7510 to fan control whitelist Date: Mon, 2 Aug 2021 14:15:38 +0100 Message-Id: <20210802131538.8660-1-clopez@igalia.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows manual PWM control without the BIOS fighting back on Dell Precision 7510. Meanwhile at it, also sort alphabetically the entries of the i8k_whitelist_fan_control struct. Signed-off-by: Carlos Alberto Lopez Perez --- drivers/hwmon/dell-smm-hwmon.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c index f2221ca0aa7b..a677c8a4ef29 100644 --- a/drivers/hwmon/dell-smm-hwmon.c +++ b/drivers/hwmon/dell-smm-hwmon.c @@ -1186,14 +1186,6 @@ static const struct i8k_fan_control_data i8k_fan_control_data[] = { }; static struct dmi_system_id i8k_whitelist_fan_control[] __initdata = { - { - .ident = "Dell Precision 5530", - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), - DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 5530"), - }, - .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3], - }, { .ident = "Dell Latitude 5480", .matches = { @@ -1218,6 +1210,22 @@ static struct dmi_system_id i8k_whitelist_fan_control[] __initdata = { }, .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3], }, + { + .ident = "Dell Precision 5530", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 5530"), + }, + .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3], + }, + { + .ident = "Dell Precision 7510", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Precision 7510"), + }, + .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3], + }, { } }; -- 2.20.1