diff options
author | Dmitry Torokhov <[email protected]> | 2024-09-09 13:37:40 -0700 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2024-09-12 14:11:36 +0200 |
commit | b4ed18a3d56eabd18cfd9841ff05111e3cfbe8f9 (patch) | |
tree | 5c06a01be79eef7cb3fb3f0837271e5b82e3a9d0 /scripts/gdb/linux/interrupts.py | |
parent | 6e4436539ae182dc86d57d13849862bcafaa4709 (diff) |
HID: i2c-hid: ensure various commands do not interfere with each other
i2c-hid uses 2 shared buffers: command and "raw" input buffer for
sending requests to peripherals and read data from peripherals when
executing variety of commands. Such commands include reading of HID
registers, requesting particular power mode, getting and setting
reports and so on. Because all such requests use the same 2 buffers
they should not execute simultaneously.
Fix this by introducing "cmd_lock" mutex and acquire it whenever
we needs to access ihid->cmdbuf or idid->rawbuf.
Signed-off-by: Dmitry Torokhov <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions