Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp490024pxu; Thu, 3 Dec 2020 05:38:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7H7g6jvj33+hhZx2Q5Ga3Y5N8KnrKwhgTOFvlAOWn19TebYhodtuY82DKsVPTNL4nlMDK X-Received: by 2002:aa7:df91:: with SMTP id b17mr2958577edy.272.1607002686666; Thu, 03 Dec 2020 05:38:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607002686; cv=none; d=google.com; s=arc-20160816; b=Fj+SstVQmHldOcRP50/U1OYUETTQrLrkBoFYD7OzgL9tU5aCyNwdyzsKXxJVJxwQVV +I9l7yXF39FlYDf5SmVOKQk+F3Y5Nvc9lzJ9DETkIfQm3B3eT1g0gy1j9LIiAPBKomlW rp2OlOMrmd4qjt2oPRP/dtZwE7PQEDMfm8qNAFhA8r2qrk1jNNKZCCeot0r5/dJAndPv nc3ykwrYurWmP5+grUmX6zx2HzBtQ06CC90R5EiBKX6j2X3A1M7sFcp0BZ6sGCvGibup bzYHOOZWgSefIqr2z4A0WNrA3FpWKEK2QuElqHF1BmvUqQ4uWLN1lK35gMNQJxZqWpwK GFqQ== 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; bh=fJd+d+erlO667A/bq8SBLs++kQJwxHaliEeZfC7cQAk=; b=XDVwKSockrJBO+wlabHCDtYZT7cw1ASIdVzCOc/U3oUnum7N6lQHgcGbzJSWG4qdSa yOfltr4t975/IPI1u4cOZqsvsWJTultx4Hk2hSEM+HTl6/Id5tMIehVr5ZXERjGQEi8a izOTnSoT+bdCsH2+WVS5Gyncwnso+l1vp1mF6P7TeOyG8GvL590xgezy5rPQypYqIq8/ 9cQtHF2S5vRMTRc8IQKZDxr4QvQaQWs2EZMYTRvkYDOqpvziuXhleHADeodZ6fhRoaSm FXurGm9Y5katHgzONYZ4/wKAmGcmoX9fQ3PvZKaISvZL4GDoyJclfg/tf0BshUu3iFKp urMA== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si1088425edv.359.2020.12.03.05.37.42; Thu, 03 Dec 2020 05:38:06 -0800 (PST) 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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436958AbgLCNfV (ORCPT + 99 others); Thu, 3 Dec 2020 08:35:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:49064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436734AbgLCNas (ORCPT ); Thu, 3 Dec 2020 08:30:48 -0500 From: Sasha Levin Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Iakov 'Jake' Kirilenko , Hans de Goede , Sasha Levin , ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org Subject: [PATCH AUTOSEL 5.9 30/39] platform/x86: thinkpad_acpi: add P1 gen3 second fan support Date: Thu, 3 Dec 2020 08:28:24 -0500 Message-Id: <20201203132834.930999-30-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201203132834.930999-1-sashal@kernel.org> References: <20201203132834.930999-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Iakov 'Jake' Kirilenko [ Upstream commit 15d89c9f6f4a186ade7aefbe77e7ede9746b6c47 ] Tested on my P1 gen3, works fine with `thinkfan`. Since thinkpad_acpi fan control is off by default, it is safe to add 2nd fan control for brave overclockers Signed-off-by: Iakov 'Jake' Kirilenko Link: https://lore.kernel.org/r/20201105152556.34073-1-jake.kirilenko@gmail.com Signed-off-by: Hans de Goede Signed-off-by: Sasha Levin --- drivers/platform/x86/thinkpad_acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 017f090a90f68..4a5bb86d341ee 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -8769,6 +8769,7 @@ static const struct tpacpi_quirk fan_quirk_table[] __initconst = { TPACPI_Q_LNV3('N', '2', 'C', TPACPI_FAN_2CTL), /* P52 / P72 */ TPACPI_Q_LNV3('N', '2', 'E', TPACPI_FAN_2CTL), /* P1 / X1 Extreme (1st gen) */ TPACPI_Q_LNV3('N', '2', 'O', TPACPI_FAN_2CTL), /* P1 / X1 Extreme (2nd gen) */ + TPACPI_Q_LNV3('N', '2', 'V', TPACPI_FAN_2CTL), /* P1 / X1 Extreme (3nd gen) */ }; static int __init fan_init(struct ibm_init_struct *iibm) -- 2.27.0