Re: [PATCH] HID: i2c-hid: Prevent sending reports from racing with device reset
From: Jiri Kosina <jikos@kernel.org>
Date: 2015-12-30 22:57:16
Also in:
lkml
From: Jiri Kosina <jikos@kernel.org>
Date: 2015-12-30 22:57:16
Also in:
lkml
On Mon, 21 Dec 2015, Mika Westerberg wrote:
When an i2c-hid device is resumed from system sleep the driver resets the device to be sure it is in known state. The device is expected to issue an interrupt when reset is complete.
[ ... snip ... ]
Prevent sending of feature/output reports while the device is being reset by adding a mutex which is held during that time.
Thanks Mika. Applied to for-4.4/upstream-fixes. -- Jiri Kosina SUSE Labs