From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f170.google.com (mail-dy1-f170.google.com [74.125.82.170]) (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 A1EE731A575 for ; Fri, 13 Feb 2026 08:12:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770970372; cv=none; b=M4vgySHnSmwuw9g3a9rl3KaiBNUW2XXAeQH1WdcWR0m6zz26cOr36GtM1jdvgVUjjFkYZ68acdXC3sYZeJlwj0/JT5raHgRTtZCrRe81F+DffLZ5fSHUKgyKUdcRmMLALGnh0sC5iCSaLiS/MTJMjpM+KYKvvA+mtcDY5AKxpEc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770970372; c=relaxed/simple; bh=lz4sXla5iaXzYaYKO6dVoB67iPEdfhhgbRea96jUVA0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=leGrKaj/1LlBsa5MRxHoofFtYV4mychkDurR9dzIWDY6kq2T1RrAhdQbb1G6doOk8cXBjIjbTiktoL+Yp0Lnt4tpNN6JydCe/WqYjzsbxg8h3vQfeAxcOqOeYFmf0M4RR9kmIjQtAfdisJ/K7su9BV3vLSUYMFavYUTVYknBsKE= 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=clpZ+HhM; arc=none smtp.client-ip=74.125.82.170 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="clpZ+HhM" Received: by mail-dy1-f170.google.com with SMTP id 5a478bee46e88-2b7da62b487so1236777eec.1 for ; Fri, 13 Feb 2026 00:12:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770970371; x=1771575171; 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=vNf3v4qpsTMWnVnNf0YVxXfe92u+FC0r54wXd3NTaBA=; b=clpZ+HhMhkDCXQA1EqFZ3Jp44kAzrvME6y4pA7cpEEmzc4LWO5o163dzTlhfPoFvPm tMmPNZoUauf8QQYlfhMBbiblLfhiP6LAMHDcHJV84IYf2avsvB/i179fB9FzwUvUMxog bxavk8GV3unxQujRvJdPuxWUV7260sq5B6jDKzNM3VDgu3ufW6fnxk1Q5ZBOXkwsuSex hFkYBcFEpUkJKXHvs2Ldcbm8CcPdeVAxTeEXLGS2CfPA2j1y29/0Bo5UlAhazAae6+b3 GvR6jjo+ppPU1fOoSH8VGd2z+WXsLpUFztYiN+sRkJjj0v3LPYevV+DSvJbQJYG+gkPQ 2AoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770970371; x=1771575171; 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=vNf3v4qpsTMWnVnNf0YVxXfe92u+FC0r54wXd3NTaBA=; b=pT9gdQg5l/sdxEQZghxa0DHnzEMC69z/GV41uj18LlxgmZnFZytggn/Jhb/gYiuN8j mPoqUkEbSrQC8dHLInKjiwKH4iwUQPv6VE0jwfHZRvkNXNKk29T7yR2rDCgDSAh9gfN8 ByVYyCIgYqXe/HtS1uvh7RmW9iaFfhnI3vRwYufAI84DBfltOhVxsUdLJ8ppP/fzBOnA CYEI8s6t2d9b+KQzGmm5gjsxFMgIdezsFXN3Qpes+ewTF2i0n5bFKwY3P+tnQWJo5RhL xFBWVQ8RVFy5FpRz9tlTfhZUrGl9dsATCBumuMMy9bLFrdxDF3gzDd45ddTaA/3rTyBh BazQ== X-Forwarded-Encrypted: i=1; AJvYcCXcHh4oRTr8MaXNYy9sQX9CV9SEG1efOlb1SvZTYPF7ZknLye/NlMRxbG1gQF3PgjewdNETjlSN2cnju0E=@vger.kernel.org X-Gm-Message-State: AOJu0YzeWi+lZemlwcOwNWfE+Xgqnh3XJFofZhyEBtXxnFZK+xq91Q+u mOwNrs7/xN3AVOwdIpKkyHK0f7dUq+wZy/0N2U78FGVYlWjYQa9bfYls X-Gm-Gg: AZuq6aIeRe7Gc9w3Bnk3Ns300lDrL8aR0Z1v6v8RaZYWf5bx0XNyDzeFoiEcu0oaHUM vIbnAo/MkgGMIKVhiJO1JTJWtDsiB0KGElhMsnYxa8bTJgsjUfPKymFJ4kRuok1MnZkCHrsITcG SayND0KpKJWt0vZjSfQ2kzS6AA/TfRrZuHdMlg+CsTfisVpoK6Ut5jxefhiign6U893es+Tc/Fw 6IJZtEmdoNS3bApqnz0QdxnEpupjLLRuktOGRlixzRuRHETehfJLKmCfEqj4I7QEBRgD5uk65/N iS3vcO7DgWa9/udvBGPJz9W7h9jJc02zvoh6SFo1MwV501gAj0OsWvN9OLigy8asQA1kujxu5LE u8IZ6OUE3iO8dOiWV+EsijiT6QL4UNaZiPmy2CWbMT35H1tqLxVZQqUyolmiwPTLsdosO5tKPtc fDKZZOmolxwCoK2ZUQ2ZMcvtpx12sky8GLR/WYHqMnNPZg6fWbIB02OfPrhoEhO975l3l5abR1s ec= X-Received: by 2002:a05:7301:168e:b0:2b8:6573:2d35 with SMTP id 5a478bee46e88-2babc42e1f4mr473844eec.2.1770970370681; Fri, 13 Feb 2026 00:12:50 -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-2ba9dd0a04csm4975052eec.33.2026.02.13.00.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Feb 2026 00:12:49 -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 0/5] platform-x86: lenovo-wmi: Add fixes and enhancement Date: Fri, 13 Feb 2026 08:02:52 +0000 Message-ID: <20260213081243.794288-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 a bug 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 adds battery charge-type limiting when supported 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 Derek J. Clark (5): 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: 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 | 605 ++++++++++++++++-- 4 files changed, 591 insertions(+), 49 deletions(-) -- 2.52.0