]> git.ipfire.org Git - people/arne_f/kernel.git/commit
HID: i2c-hid: Fix resume issue on Raydium touchscreen device
authorAaron Ma <aaron.ma@canonical.com>
Mon, 9 Apr 2018 07:41:31 +0000 (15:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:43:07 +0000 (09:43 +0200)
commitbbdd53af5489d9fc352aab7fe5a4c8dc34b4fb5d
treeb398685bf7ff8ae1ebf0af90f1f1560a3f1bd1e2
parente21e58679d3e9db0258106ffd3c8db76e66c5e6e
HID: i2c-hid: Fix resume issue on Raydium touchscreen device

commit 3e83eda467050f13fa69d888993458b76e733de9 upstream.

When Rayd touchscreen resumed from S3, it issues too many errors like:
i2c_hid i2c-RAYD0001:00: i2c_hid_get_input: incomplete report (58/5442)

And all the report data are corrupted, touchscreen is unresponsive.

Fix this by re-sending report description command after resume.
Add device ID as a quirk.

Cc: stable@vger.kernel.org
Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-ids.h
drivers/hid/i2c-hid/i2c-hid.c