From patchwork Wed Nov 22 06:55:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SungHwan Jung X-Patchwork-Id: 16905 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp1138495vqb; Tue, 21 Nov 2023 22:56:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGDzBmYtsv8KXvT60XnErMO5p6K6gD/lvRQE0cewm0CRCxzlbjeobfXlK8a5En907BhAU2a X-Received: by 2002:a17:90a:316:b0:285:2651:e678 with SMTP id 22-20020a17090a031600b002852651e678mr1257780pje.48.1700636219134; Tue, 21 Nov 2023 22:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700636219; cv=none; d=google.com; s=arc-20160816; b=PBvnqJga3XLdrqzXrC5DZXy7ETGda9bxYgkliA8gEYwlO3OYbHCB0EU0Yj9aYTITQo XzTAe8VKKv459DhWRWNJCsVXbg7eSqsdeRBPoAkQh6DPSWY+qHpIP0XAaDLSSTFK8SE/ YfcoGYxA4l69QJzBGKRX1AGlNmaXTnFQ0rUbTrtwB7yBI7MUc1KrvkXp0gU1U7pp3JEi cebWgw3v5TsZNL71X7FZINppQCDjjst6LbQrb0fr2HazyY1M88yL2mYnUAl4h1+gb5UE EHjrs8MIs91L/UKgHZkimz35XljQjOGrAzat3JIQIotrQ1mGta4zN8dMLyhRILL+yWK1 CVog== 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=ZfCjvC2TiWoEcnFFsAker1RGmc2mHOdv8vnoegXp8pA=; fh=iDpxsj23gvL+LwLvp6F5xld5e+gHo34VIlY6bNDhVg8=; b=Q839uXVDqz0a4T3/oC+Jgfk0Y/fNxRy5OKoQP1UPMFbLO3SikTjnSUpeeX2UXMaSR1 opyQn2jZH6IqJ1bs+B0RtxetJkyVJ3Snjmo5IcqAgA8n3fWyXbHqnZxPOUrdy2SyBwxk cEoWT10R0OgGSUS9XSUs+CwHJWcRUrvsXr+G84FiEbRVBxs9kP53T+QYPYeH3hc9C6m+ C+j5FHgXit4m9I95ysPre6ruW2HCIs2TV7Vfb1jHVImnuRJyI+2ZtAV960OsV7GT3iLF K3K7SZqWeDJA1s3nHs2dqkEXkOSphBpdAgi7cQpve2FzWlpHxaXtLzxvB3c+O7zpP/sb eWKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VLzm8hXW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id t12-20020a17090abc4c00b00280294ec225si886833pjv.24.2023.11.21.22.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 22:56:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VLzm8hXW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DAA1181A2358; Tue, 21 Nov 2023 22:56:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234830AbjKVG4c (ORCPT + 99 others); Wed, 22 Nov 2023 01:56:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbjKVG4b (ORCPT ); Wed, 22 Nov 2023 01:56:31 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F5D619D; Tue, 21 Nov 2023 22:56:28 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1ce95f96edcso30481615ad.0; Tue, 21 Nov 2023 22:56:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700636188; x=1701240988; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZfCjvC2TiWoEcnFFsAker1RGmc2mHOdv8vnoegXp8pA=; b=VLzm8hXWhrTGzMGG15zNvafELtMzKowuk/4vkj7qyxoL2ktyRF2XLJOYK7PtWMMvUB 1T9AXpZDTvhUXlfkRqeWes3CGGPTp7VUvjzMNd/bKEBrm5BAYhsZ8FIyBKwuRXWo0kiU ZWuoKRhh06XaQNcKXKq4hVdUHAtPC7zPqGL5QN1A86TYY1MPG12C/zG6nC8WE4pAmVVZ Bp0i4R3Bbv46z0nDVxmEBxwVmuay4Pc4MXdHBQZEkrsUm/LsOfcqAYcyPIQqFd2HjCER t1KeYBJFBhe0YcGkJT/dW4P4NiQi5LLeO30tG7g1CCw9l/do8A+1HSPGbuf8ztRZWSSu UEmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700636188; x=1701240988; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZfCjvC2TiWoEcnFFsAker1RGmc2mHOdv8vnoegXp8pA=; b=AXB7AlmLtqtV6TKGyzPv7I5D6VjpzV5eYmEbiJf7xDID+RTJaOLn6oc/JQ0iUUBwVK SaTV93Vpf0imyKOpo+P1gZahKkAWO+6dzfBLyCOUi785EkWsYFRTspyYpmmQ4Pah/k/v wq4Wy0FjACsgwfYjEXEVmr9BYF9wI7j8Zo2nwAT4rX4h0298fvtbqBuQSVVp+Rd6OPjt rbUjV2L0r6hhU7Q2JAvaLnS6iZhWIfDuAOoKKHaeqWyn+2FdCpHOfeNIbTE75fDarphq CzTU9w7fIUPqnYI4XM1oaGTw/AzZqMF49fKj0swsddHvm8PlV1ZLRpm4/a9V8Qe5s3tB tOaw== X-Gm-Message-State: AOJu0YxnT79KXLaUs/1fljbgbSi5hlGKRri8M4bgvA2hkhCRoI6lZ50f j6+3SctAHg4OsSND8JQ+I2w= X-Received: by 2002:a17:903:41c1:b0:1cc:665d:f818 with SMTP id u1-20020a17090341c100b001cc665df818mr1280698ple.68.1700636187631; Tue, 21 Nov 2023 22:56:27 -0800 (PST) Received: from localhost.localdomain ([110.46.146.116]) by smtp.gmail.com with ESMTPSA id x15-20020a170902820f00b001cf51972586sm701175pln.292.2023.11.21.22.56.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 22:56:27 -0800 (PST) From: SungHwan Jung To: "Lee, Chun-Yi" , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: SungHwan Jung , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Add support for Acer Predator PHN16-71 Date: Wed, 22 Nov 2023 15:55:31 +0900 Message-ID: <20231122065534.3668-1-onenowy@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 22:56:54 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783204935817803991 X-GMAIL-MSGID: 1783246324286524741 This series of patches adds support for Acer Predator PHN16-71 in acer-wmi including platform profile, (thermal) mode key and fan speed monitoring. The acer-wmi driver already includes fan control and turbo mode support for gaming laptops that use predator sense app (version 3), but PHN16-71 operates in different way with new predator sense (version 4). To distinguish from implementation for previous model, new implementation for this device is marked with "v4". Changes in v2: - fix typo - remove redundant "if" statement SungHwan Jung (2): platform/x86: acer-wmi: Add platform profile and mode key support for Predator PHN16-71 platform/x86: acer-wmi: add fan speed monitoring for Predator PHN16-71 drivers/platform/x86/acer-wmi.c | 364 +++++++++++++++++++++++++++++++- 1 file changed, 363 insertions(+), 1 deletion(-)