From patchwork Sun Jun 21 04:52:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jeffrey Lin X-Patchwork-Id: 11616427 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9AF5B92A for ; Sun, 21 Jun 2020 04:55:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 794E620890 for ; Sun, 21 Jun 2020 04:55:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=icurse.nl header.i=@icurse.nl header.b="GVvAhg9P" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725951AbgFUEzd (ORCPT ); Sun, 21 Jun 2020 00:55:33 -0400 Received: from mail.ruun.network ([176.9.184.6]:33241 "EHLO mail.ruun.network" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbgFUEzc (ORCPT ); Sun, 21 Jun 2020 00:55:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=icurse.nl; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=pzICcxAhbjceCAGYyGxyUjDndEifum3vNyJxaV2tvZ8=; b=G VvAhg9PE6jLJRnKlAUSzjspsg97m/ubY7jZDpqjJKIi3N/YRFPYepNlJ6ihanw6AJdMkQ4BAOg/7o twpRfZJTPg0SC8QxVBfxJk2Y3o4nzil8mR3j4R/pzDTvL8uWRhonX5Okql68uFSY0if7t7rauNK99 l5gwORxGQ8gQTMN/3USEw+17/6m3/+CKbtCple7xAdR6jinBvH1fCFS3AcLGYTePSqoPEH1G2OToy BIrSH/gjqdKLI6Z2uqZgI1ObeqReZZPf7rTKBEAzGxuS50kjQFTKToGxspudyZ5QjmmMN2QPyFX7h 1f/mn0W+ts9DPbFzWSa4akXAYByHK3F1A==; Received: from cpe-98-14-166-248.nyc.res.rr.com ([98.14.166.248] helo=localhost.localdomain) by birchibald.ruun.network with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93.0.4) (envelope-from ) id 1jms0r-0002ng-Pa; Sun, 21 Jun 2020 06:55:26 +0200 From: Jeffrey Lin To: Jean Delvare Cc: Guenter Roeck , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Jeffrey Lin , =?utf-8?q?Pa?= =?utf-8?q?li_Roh=C3=A1r?= Subject: [PATCH v2] hwmon: (dell-smm) Add Latitude 5480 to fan control whitelist Date: Sun, 21 Jun 2020 00:52:48 -0400 Message-Id: <20200621045246.929649-1-jeffrey@icurse.nl> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Authenticated-Id: jeffrey@icurse.nl Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org This allows manual PWM control without the BIOS fighting back on Dell Latitude 5480. Signed-off-by: Jeffrey Lin Acked-by: Pali Rohár --- The last email should have been labeled v2, apologies for the noise. Changes in v2: - Added Pali's Acked-by drivers/hwmon/dell-smm-hwmon.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c index 16be012a95ed..ec448f5f2dc3 100644 --- a/drivers/hwmon/dell-smm-hwmon.c +++ b/drivers/hwmon/dell-smm-hwmon.c @@ -1187,6 +1187,14 @@ static struct dmi_system_id i8k_whitelist_fan_control[] __initdata = { }, .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3], }, + { + .ident = "Dell Latitude 5480", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Latitude 5480"), + }, + .driver_data = (void *)&i8k_fan_control_data[I8K_FAN_34A3_35A3], + }, { .ident = "Dell Latitude E6440", .matches = {