diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-06-07 08:59:34 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-06-08 13:56:09 +0200 |
commit | aaac082dac0a8ac6b00509c7ae2fa8280f966652 (patch) | |
tree | a7b5f120070f8d399d784f1b5601a09c50822291 /ipc | |
parent | HID: usbhid: do not rely on hid->open when deciding to do IO (diff) | |
download | linux-aaac082dac0a8ac6b00509c7ae2fa8280f966652.tar.xz linux-aaac082dac0a8ac6b00509c7ae2fa8280f966652.zip |
HID: serialize hid_hw_open and hid_hw_close
The HID transport drivers either re-implement exactly the same logic
(usbhid, i2c-hid) or forget to implement it (usbhid) which causes issues
when the same device is accessed via multiple interfaces (for example input
device through evdev and also hidraw). Let's muve the locking logic into
HID core to make sure the serialized behavior is always enforced.
Also let's uninline and move hid_hw_start() and hid_hw_stop() into hid-core
as hid_hw_start() is somewhat large and do not believe we get any benefit
from these two being inline.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions