summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRong Zhang <i@rong.moe>2026-10-19 23:02:31 +0800
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-10-20 15:05:47 +0300
commit41a2ea4df8f036c9420616f29deb8ef5744dfd65 (patch)
tree855a3a72e5fae58055f480493f69f45ed793e068 /scripts
parent952f7fcb161aefcbd6528e34a43932be1f64d839 (diff)
platform/x86: lenovo-wmi-capdata: Detect stubbed capdata device
Some devices may stub the capdata device's WMI query method because it doesn't support the relevant interfaces at all. For example, most ThinkBook devices doesn't support GameZone or Other Mode thermal tuning, so capdata 01 is useless and stubbed. Keeping the capability data list with empty data is meaningless and causes lenovo-wmi-other to call lwmi_cd*_get_data() to retrieve nonexistent capdata in vain. Therefore, stub the device and release (or skip allocating) needless resources, e.g., the capability data list and the debugfs directory. Tested-by: Navon John Lukose <navonjohnlukose@gmail.com> Reviewed-by: Derek J. Clark <derekjohn.clark@gmail.com> Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca> Signed-off-by: Rong Zhang <i@rong.moe> Link: https://patch.msgid.link/20261019-lwmi-wmi-new-api-v5-9-71557d28d058@rong.moe Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions