[ibm-acpi-devel] [PATCH 2/2] platform/x86: thinkpad_acpi: use lockdep annotations

2023-07-04 Thread Thomas Weißschuh
Instead of relying on free-form comments to document locking requirements use well-known lockdep annotations. These can also be validated at runtime make sure the invariants are not violated. Signed-off-by: Thomas Weißschuh --- drivers/platform/x86/thinkpad_acpi.c | 41 +-

[ibm-acpi-devel] [PATCH 0/2] platform/x86: thinkpad_acpi: lockdep support

2023-07-04 Thread Thomas Weißschuh
++-- 1 file changed, 28 insertions(+), 17 deletions(-) --- base-commit: 03275585cabd0240944f19f33d7584a1b099a3a8 change-id: 20230704-thinkpad_acpi-lockdep-7def9d7f91b5 Best regards, -- Thomas Weißschuh ___ ibm-acpi

[ibm-acpi-devel] [PATCH 1/2] platform/x86: thinkpad_acpi: take mutex for hotkey_mask_{set, get}

2023-07-04 Thread Thomas Weißschuh
hotkey_mask_set() and hotkey_mask_get() expect hotkey_mutex to be held. While it should not matter during initialization a following patch will enable lockdep for hotkey_mutex which would produce warnings here. Signed-off-by: Thomas Weißschuh --- drivers/platform/x86/thinkpad_acpi.c | 4 1