From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f180.google.com (mail-dy1-f180.google.com [74.125.82.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2B76339A8 for ; Sun, 15 Feb 2026 06:13:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771136025; cv=none; b=j+kvgHthhUWCqXE3p+YZslvzFcdwScSFGhWxD+HPhTrkPhXBhpfzYvxuDMFCxDF5XKoiD+Ufs6OpIPFGueCREe+ggzAEqFOazMHdyZy5aT59xb9F5gkepXbKMjtGdDGUk+BsIcPdwwAo/m8PWjcxi0/wUxFSoU7mdzxg/P53To0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771136025; c=relaxed/simple; bh=NuoWdMkI4zb9o92HF0VAA1xvTuEfPLaG2mc4/JVBPho=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hLUkkKZOz7vaAUXqGDH03T9YzBrWgE+zkb5mb1eforSFQVmfzyyxFkagjMzQco0bHtwnW9sMC3SO75cUj8BbIHbXUOrt8z8QFZEqzorPL6HFiiPJXGvOWsnGoSRni1Ik5X8Vj98Dn1X/GHPGpDAhL4G/lOpcUod2B/9G0WKmEzE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=K9jdJtEY; arc=none smtp.client-ip=74.125.82.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K9jdJtEY" Received: by mail-dy1-f180.google.com with SMTP id 5a478bee46e88-2baa6ec5638so928831eec.0 for ; Sat, 14 Feb 2026 22:13:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771136023; x=1771740823; 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=hyOyhqjdcaZH1JmS3/LX/rDvhQe+l28zkSACpoEDccI=; b=K9jdJtEYs2eHuSdEE2VmIVr3yIHlv01BWBIZBoZ9Ls2Ni7OAtvrAHUxIyKkPIU/f+C BOEnAjufXgdvH8yNi+q28pfTz8fcpOyRy7OujBu2QKlea1ysLd7z9Mm7tL/F/7eLF9Y+ tdcp/LN/aGvNkqNjRfiVzhwj54b0bL7T6ddQZO/ifJNZ+NvBW04kM1V2GXIIjE7PYnnI FSEeXM0GvbUcgdsgWU8qepX3QySMqCwyOYPoUtWKklC+18+kvyQGRXfnNVMaUWECAI4G N4VNZX2e5kWIbHwFdKZNEHlofqrEbux8Web2UYx2B9PS26tBTgmWvYYbU5wLFGeLESEo Gqvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771136023; x=1771740823; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hyOyhqjdcaZH1JmS3/LX/rDvhQe+l28zkSACpoEDccI=; b=dXgcx0ktQaSlhvre+n53QsIXIufQxcZVS5lijWW/91AuunnN+ybih0UmDzfzCHhqC8 NhSDcUKvL1vmwzXmfmtvzZ8IvmGpN4cUY70hn1CG9dSfglwoYx/kUp8/2fqtjsbyGmjO I7U/vZ4npu3XQVKFnLVHKj1USqNjlhXxbrjWZhy8Mf3GXr4dfR6cA/pTZrZm8vSNKsMf d4Ml47i9qtnHG4dlyrS1RLYyq+ay8zeZYfUyScPjvT703eFm6QLaK1z+jlCcpegS2erT wz9P+daxdfsNU/79ZhWzYk4jp5nKeJJvepekCi2Eug0B1MSCj6dZdFusz9kvYFRIjHkL MXGw== X-Forwarded-Encrypted: i=1; AJvYcCVgn8/kc2a6B7ptVJhQWLCtYAFxLlHjb1aVuBQkPt0xFkCEBmSQUevUynJzSBDZm/RmCKKcjEsF079TZRI=@vger.kernel.org X-Gm-Message-State: AOJu0YxlBN3BLlpyGHzfdy9H5rSoHT1fHAm/xdorhncx3IzMdESMWq4J CpmEQgHQ+pua5efikJauCAlxcedyOnCdAP6326NYJDlvOl194fohj5RM X-Gm-Gg: AZuq6aK0Q9kURrvoYudusON6cX6zVbbnUEWnef5un3Cw+LxEKsu3jm+d38b/m+IVTnZ +XHBE/r9IHpFMffXA9kzhh8QBaMW+pD1uQIwsUH5qIs9ozAP+PoGskVJyW9V5DK5SkUOFlk0YyQ VRXLSRmPyKOpLuE22WKFlVIL57XyG/ubDj2n0fIHUJwLtPi/yvDBPJ2X7AhmS6S42sEYQo2PTh3 qnKkFLGQ6wWCjh66jtfMIJfGP8J9hVSDtw4f4dlGHmKIUa1OZy7ys9bopbK7q6Z4Hogx1Ep2pkr 1xPLIYq8KnUzqYC7jTVkZP1r6vbJ/b9Gqgr5P4jbRcLTzzk5s99wNxo9poTiehP7gfkYHSfzdM3 lhudgMVAzZJTvF3S0ON1mguX7VxlDHmg7st9RP9gpUltzL7pGCQ1CWKfOD+atezKTZZjHiN1jbx Ak5MwnE5dLO8dCWlIA49kBzLD/HahULGuOsFj478meHEcXnahvASB8X9fRnEKG42jcsextR88Oq OU= X-Received: by 2002:a05:7300:ca1:b0:2b8:3b47:8951 with SMTP id 5a478bee46e88-2bac71d4b02mr2061987eec.1.1771136022880; Sat, 14 Feb 2026 22:13:42 -0800 (PST) Received: from lappy (108-228-232-20.lightspeed.sndgca.sbcglobal.net. [108.228.232.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2bacb577bcasm4759245eec.12.2026.02.14.22.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Feb 2026 22:13:42 -0800 (PST) From: "Derek J. Clark" To: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Hans de Goede Cc: Mark Pearson , Armin Wolf , Jonathan Corbet , Rong Zhang , Kurt Borja , "Derek J . Clark" , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/6] platform-x86: lenovo-wmi: Add fixes and enhancement Date: Sun, 15 Feb 2026 06:12:53 +0000 Message-ID: <20260215061339.2842486-1-derekjohn.clark@gmail.com> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series adds many much needed features and fixes to the lenovo-wmi drivers. Patch 1 adds a macro to make assigning attribute ID's for capdata cleaner and easier. Patch 2 addresses bugs where devices that don't support exposed attributes would still create the attribute, and also attempts to identify the correct capdata and set/get methods as some legacy interfaces don't use the custom mode in the method or capdata ID. Patch 3 adds the remaining CPU attributes that weren't previously exposed. Patch 4 adds the GPU attributes that weren't previously exposed. Patch 5 consolidates name constants in preparation for patch 6. Patch 6 adds battery charge-type limiting when supported only by WMI. After applying Rong's series from https://lore.kernel.org/platform-driver-x86/20260210191938.137234-1-i@rong.moe/ I found that there weren't any conflicts, so rather than combine the series we can just review each separately. Signed-off-by: Derek J. Clark --- v2: - Fix gpu_mode misisng from attributes list. - Fix prototypes for power suppy patch. - Reorganize CPU and GPU attributes alphabetically. - Break out the patch consolidating the driver name cost. - Move some of the refactoring of attribute_id back to into patch 1 where it belongs. - Fix some additional typos in function prototypes. v1: https://lore.kernel.org/platform-driver-x86/20260213081243.794288-1-derekjohn.clark@gmail.com/ Derek J. Clark (6): platform/x86: lenovo-wmi-other: Add LWMI_ATTR_ID Macro platform/x86: lenovo-wmi-other: Limit adding attributes to supported devices platform/x86: lenovo-wmi-other: Add missing CPU tunable attributes platform/x86: lenovo-wmi-other: Add GPU tunable attributes platform-x86: lenovo-wmi-other: Consolidate name into single const platform/x86: lenovo-wmi-other: Add WMI battery charge limiting. .../wmi/devices/lenovo-wmi-other.rst | 21 + drivers/platform/x86/lenovo/wmi-capdata.h | 13 +- drivers/platform/x86/lenovo/wmi-gamezone.h | 1 + drivers/platform/x86/lenovo/wmi-other.c | 606 ++++++++++++++++-- 4 files changed, 592 insertions(+), 49 deletions(-) base-commit: 5a5203a45b063a594e89a2aeaf9e4923893a5b4c -- 2.52.0