summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorJulian Haarmann <julian.haarmann@student.kit.edu>2026-06-14 22:30:26 +0200
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-07-09 16:42:59 +0300
commitbbc497b5231829d32c3a53b6e66be1add76c0064 (patch)
treecd9defdc97012779f64606cb1577e76fdaffb3d0 /tools/lib/python
parent83c80495e45eddf64c6525fb582d8db68f256b71 (diff)
platform/x86: lenovo/ymc: Only match lower byte in WMI lid switch query response
On newer Lenovo Yoga devices like the "Yoga 9 2-in-1 14IPH11 - Type 83SE", the hinge switch WMI query returns extra data in the upper bits (e.g. 0x50001 laptop mode, 0x50002 tablet mode, ect.). The driver previously checked for exact matches (0x01 laptop, 0x02 tablet, ect.) causing newer switches to not work. Mask the WMI query result to only match the lower byte and ignore upper bits. Signed-off-by: Julian Haarmann <julian.haarmann@student.kit.edu> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260614203235.235724-1-julian.haarmann@student.kit.edu Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions