From patchwork Thu Nov 23 15:22:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SungHwan Jung X-Patchwork-Id: 17009 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp523109vqx; Thu, 23 Nov 2023 07:23:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFS7Du7ZwZZI5FBqvIDkvP7L+Oow3J7NChaJWe8UScqHFNRblmYHcPU8+tw42uHEhRtxaVp X-Received: by 2002:a05:6a00:c90:b0:6b7:18c1:c09a with SMTP id a16-20020a056a000c9000b006b718c1c09amr6125668pfv.5.1700753007091; Thu, 23 Nov 2023 07:23:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700753007; cv=none; d=google.com; s=arc-20160816; b=Bk5OpaOv3N/OpQunY5KKzCmwLko8mR5l6uCAU021Hvo48f/de3n6eaBcXBfk/QxbNb n/+W/n3y5T/sgNfXIXS1/xS7j3rAZZ9/2kr5WEMCDofeFMBjL6WXce8mnMFKrDqj5L5H RTdduOb1sQZgIZvM7pDIGqpJ4HI4WcTj5QK79W0ReAoBD7ev2fcJ5Zuaz/S26LybbVx+ m3BRRvhNU4Xckzy+C5jfPm+0lavXF2Eq28YQLzop4ik5Ij1PxPmZTJrqK60SsEW9KhfV JSmjANLf+riu5iPTeLjgdtsQtG4NQau+ytlpVcIaVf6VKHibcQho6M1OYt+Q0F3G1Z2D 2oUA== 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=O8k0J5g8fTvye961SlGaFZHeC7PjYj+KQtQkSEfcfOY=; fh=xHl243xDiT23q9hyTiKsftvq+8y9UCpwfKZetSycd/s=; b=eARfV0CaxKSf96NpMy0qL0QOB7r4IP7BZLzQAw2gqc8E+Qa7DxNyKjs62JAFJ7ZPdB zmd4kEQfK7H3ztq0J59tLCk4uuzoKs+YEAJ6zaM5uQOlhg8o7YZe0BI272SdoxCnsVKg k94+DYkxloFh1S5T22/BW3xZsESEhLq9h6tI3hYNh0Cn4f+XhL+P1MlqxpdZCjdmS6+i e1TJZJAbqNQt/yPevnYhhY9fiNvMeqGVypgxA2kP0x0qcpyyWQOACT+3WJaQO4evO9pj wWk59Ml3xuq2BI6TG+KSTkuP44V/Mlt7XRx1Kl8l7nUeay9d+wVucsUIUeTctg6iI1kd y1rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nobkJI9v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id q15-20020a056a00084f00b006c040064180si1492312pfk.335.2023.11.23.07.23.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 07:23:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nobkJI9v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 040AC8097787; Thu, 23 Nov 2023 07:23:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346041AbjKWPXP (ORCPT + 99 others); Thu, 23 Nov 2023 10:23:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345997AbjKWPXO (ORCPT ); Thu, 23 Nov 2023 10:23:14 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19FF4C1; Thu, 23 Nov 2023 07:23:20 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1ce656b9780so6967615ad.2; Thu, 23 Nov 2023 07:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700752999; x=1701357799; 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=O8k0J5g8fTvye961SlGaFZHeC7PjYj+KQtQkSEfcfOY=; b=nobkJI9vC6LppbRZ/fh0nlVFNUwxgXOoOovhLY9pYdH/EYHbyVL9IlFKp8mtbdEJH3 xT4eV0eKImmvqd9lWsQIeijJ5tKBndxNKcrDqpo9xmTsXTiOvchPITocvlm5jI7VH7f9 3rmw3zH0TW9HDgPUXwH7rNxOtaYoJWjGLsEXmYz1AzcGuMK5k7pnluAWTn8A4tKP0+S6 25fAwwpKPF6bZ5EIfq1de6Te1MA+wK/uqiddwwseFUSbpeaLpIXyPf1mNztJ6Yorte8l ECemZvpQfnd6WkmF9f6CaPc5kvUknrU8DNrCbxblkRmomAEuIiyxxC6W04+GH1BKdyM1 IYrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700752999; x=1701357799; 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=O8k0J5g8fTvye961SlGaFZHeC7PjYj+KQtQkSEfcfOY=; b=dpt1tW5YiV9MmEkL3tq7yCRqA84hN13JYq1Dc5wlYQ89IDDC32UaYz59sY76qbVItX Vn2fmCBOndQ3gOYQ2sUOXRGUyXSSaS/RkrVS/VipR12KNA/FAiUcnt+aHvUgeGlDzbl4 Z1DN9KeRi6L1Zm5000xmVXX47z11TgFZX0/QrB5Gm4jpJ/kLC8LiQ66WPMiPqboDYDAa G8vPFrsiaUr4FAythkiYNrqPHO/ni33ar8DrtnC61osAM+Q4IC+gtvcMqEQk19hZgdnI QbGC3y2e5PEzRlx+BEnc3qnqCRzoPQRjqkRqIY1T951Sh3z3yCQ6BAVP7K8keDCm0oMo EaeQ== X-Gm-Message-State: AOJu0YzvYdhaxgd3t/PCMfZBwN0jGdUYIpcMcvEVCb7uSxZbCXPavigk CrKhTr3fCYH4FPPc0YlMENw= X-Received: by 2002:a17:903:4289:b0:1cf:64c9:b116 with SMTP id ju9-20020a170903428900b001cf64c9b116mr5559508plb.4.1700752999465; Thu, 23 Nov 2023 07:23:19 -0800 (PST) Received: from localhost.localdomain ([110.46.146.116]) by smtp.gmail.com with ESMTPSA id e12-20020a17090301cc00b001c737950e4dsm418565plh.2.2023.11.23.07.23.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 07:23:19 -0800 (PST) From: SungHwan Jung To: Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , "Lee, Chun-Yi" , Jean Delvare , Guenter Roeck Cc: SungHwan Jung , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: [PATCH v3 0/2] Add support for Acer Predator PHN16-71 Date: Fri, 24 Nov 2023 00:22:25 +0900 Message-ID: <20231123152229.4920-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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 23 Nov 2023 07:23:24 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783368784691401204 X-GMAIL-MSGID: 1783368784691401204 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 v3: - change dependencies in kconfig 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/Kconfig | 3 +- drivers/platform/x86/acer-wmi.c | 364 +++++++++++++++++++++++++++++++- 2 files changed, 365 insertions(+), 2 deletions(-)