Home
last modified time | relevance | path

Searched hist:c918fe781fab6d8bdc35f1652dc4f95f2bf6950d (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/hid/
H A Dhid-lg4ff.cdiff c918fe781fab6d8bdc35f1652dc4f95f2bf6950d Wed Apr 08 15:56:48 CDT 2015 Michal Malý <madcatxster@devoid-pointer.net> HID: hid-lg4ff: Protect concurrent access to output HID report

Protect concurrent access to output HID report with a spinlock. The HID report
structure used to submit commands to wheels is shared amongst all functions that
need to do so and some of these functions can be executed in parallel.
Additionally, lg4ff_play() can be called from interrupt context by ff-memless
module. Locking is necessary to prevent sending bogus data to the wheels.

Signed-off-by: Michal Malý <madcatxster@devoid-pointer.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>